@typus/typus-sdk 0.6.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/config.json +17 -20
  2. package/lib/constants.d.ts +8 -6
  3. package/lib/constants.js +9 -7
  4. package/lib/scripts/sui.js +1 -2
  5. package/lib/test/authorized/testAuthorizedNewPortfolioVault.js +82 -0
  6. package/lib/test/{testClaim.js → authorized/testAuthorizedUpdateUpcomingVaultConfig.js} +19 -30
  7. package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.js +68 -0
  8. package/lib/test/getBidData.js +1 -1
  9. package/lib/test/getVaultData.js +2 -2
  10. package/lib/test/getWhiteListFromRegistry.js +2 -2
  11. package/lib/test/helper/getAuctionMaxSize.js +76 -0
  12. package/lib/test/helper/getUserStatus.js +75 -0
  13. package/lib/test/testMint.js +1 -1
  14. package/lib/test/testSubscribeEvent.js +1 -1
  15. package/lib/test/{testWithdraw.js → user/testClaim.js} +14 -17
  16. package/lib/test/{getMakersShares.js → user/testCompound.js} +21 -7
  17. package/lib/test/{testUnsubscribe.js → user/testDeposit.js} +28 -37
  18. package/lib/test/{getUsersShares.js → user/testHarvest.js} +21 -7
  19. package/lib/test/user/testNewBid.js +77 -0
  20. package/lib/test/user/testUnsubscribe.d.ts +1 -0
  21. package/lib/test/user/testUnsubscribe.js +69 -0
  22. package/lib/test/user/testWithdraw.d.ts +1 -0
  23. package/lib/test/{testDeposit.js → user/testWithdraw.js} +15 -19
  24. package/lib/utils/auction/getBid.js +0 -1
  25. package/lib/utils/fetchData.d.ts +72 -61
  26. package/lib/utils/fetchData.js +27 -198
  27. package/lib/utils/getTypeArgumentFromToken.js +0 -1
  28. package/lib/utils/getVaultData.d.ts +2 -2
  29. package/lib/utils/getVaultData.js +123 -162
  30. package/lib/utils/getWhiteListFromRegistry.js +0 -1
  31. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +1 -1
  32. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +2 -2
  33. package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +4 -3
  34. package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js +5 -3
  35. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +1 -1
  36. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +2 -2
  37. package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.d.ts +4 -0
  38. package/lib/utils/portfolio/authorized/{getAuthorizedUpdateNextVaultConfigTx.js → getAuthorizedUpdateUpcomingVaultConfigTx.js} +5 -5
  39. package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.d.ts +1 -0
  40. package/lib/utils/portfolio/{manager/getUpdateVaultConfigTx.js → authorized/getAuthorizedUpdateWarmupVaultConfigTx.js} +4 -5
  41. package/lib/utils/portfolio/helper/getAuctionMaxSize.d.ts +8 -0
  42. package/lib/utils/portfolio/{manager/getLastEvolutionTx.js → helper/getAuctionMaxSize.js} +11 -7
  43. package/lib/utils/portfolio/helper/getUserStatus.d.ts +29 -0
  44. package/lib/utils/portfolio/{authorized/getAuthorizedEvolutionTx.js → helper/getUserStatus.js} +50 -9
  45. package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +8 -1
  46. package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.js +9 -2
  47. package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +6 -0
  48. package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js +6 -0
  49. package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +15 -1
  50. package/lib/utils/portfolio/manager/getEvolutionTx.js +14 -0
  51. package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +8 -1
  52. package/lib/utils/portfolio/manager/getNewManagerTx.js +9 -2
  53. package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +5 -5
  54. package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.js +5 -5
  55. package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +7 -0
  56. package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.js +7 -0
  57. package/lib/utils/portfolio/manager/getRemoveManagerTx.d.ts +5 -0
  58. package/lib/utils/portfolio/manager/getRemoveManagerTx.js +5 -0
  59. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +7 -1
  60. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +7 -1
  61. package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +9 -1
  62. package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +11 -3
  63. package/lib/utils/portfolio/user/getClaimTx.d.ts +9 -1
  64. package/lib/utils/portfolio/user/getClaimTx.js +8 -0
  65. package/lib/utils/portfolio/user/getCompoundTx.d.ts +9 -0
  66. package/lib/utils/portfolio/{authorized/getAuthorizedLastEvolutionTx.js → user/getCompoundTx.js} +12 -6
  67. package/lib/utils/portfolio/user/getDepositTx.d.ts +10 -0
  68. package/lib/utils/portfolio/user/getDepositTx.js +10 -0
  69. package/lib/utils/portfolio/user/getHarvestTx.d.ts +9 -1
  70. package/lib/utils/portfolio/user/getHarvestTx.js +8 -0
  71. package/lib/utils/portfolio/user/getNewBidTx.d.ts +13 -1
  72. package/lib/utils/portfolio/user/getNewBidTx.js +12 -0
  73. package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +10 -1
  74. package/lib/utils/portfolio/user/getUnsubscribeTx.js +9 -0
  75. package/lib/utils/portfolio/user/getWithdrawTx.d.ts +10 -1
  76. package/lib/utils/portfolio/user/getWithdrawTx.js +9 -0
  77. package/package.json +2 -2
  78. package/lib/test/eventListener.d.ts +0 -5
  79. package/lib/test/eventListener.js +0 -397
  80. package/lib/test/testDepositV2.d.ts +0 -0
  81. package/lib/test/testDepositV2.js +0 -64
  82. package/lib/test/testNewAuction.js +0 -94
  83. package/lib/test/testNewVault.js +0 -153
  84. package/lib/test/testOracle.js +0 -94
  85. package/lib/test/testSettle.js +0 -590
  86. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +0 -1
  87. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +0 -56
  88. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  89. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +0 -56
  90. package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +0 -1
  91. package/lib/utils/authorized/getAuthorizedDeliveryTx.js +0 -56
  92. package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +0 -1
  93. package/lib/utils/authorized/getAuthorizedEvolutionTx.js +0 -56
  94. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +0 -1
  95. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +0 -56
  96. package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +0 -1
  97. package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +0 -56
  98. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +0 -1
  99. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +0 -76
  100. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +0 -1
  101. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +0 -56
  102. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  103. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +0 -56
  104. package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +0 -1
  105. package/lib/utils/authorized/getAuthorizedSettleTx.js +0 -56
  106. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +0 -1
  107. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +0 -56
  108. package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -1
  109. package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.js +0 -65
  110. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
  111. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +0 -64
  112. package/lib/utils/coveredCall/createPriceOracle.d.ts +0 -1
  113. package/lib/utils/coveredCall/createPriceOracle.js +0 -93
  114. package/lib/utils/coveredCall/createTimeOracle.d.ts +0 -1
  115. package/lib/utils/coveredCall/createTimeOracle.js +0 -92
  116. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  117. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +0 -61
  118. package/lib/utils/coveredCall/getClaimAllTx.d.ts +0 -1
  119. package/lib/utils/coveredCall/getClaimAllTx.js +0 -59
  120. package/lib/utils/coveredCall/getClaimTx.d.ts +0 -1
  121. package/lib/utils/coveredCall/getClaimTx.js +0 -59
  122. package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +0 -1
  123. package/lib/utils/coveredCall/getCloseAuctionTx.js +0 -61
  124. package/lib/utils/coveredCall/getCloseVaultTx.d.ts +0 -1
  125. package/lib/utils/coveredCall/getCloseVaultTx.js +0 -60
  126. package/lib/utils/coveredCall/getDeliveryTx.d.ts +0 -1
  127. package/lib/utils/coveredCall/getDeliveryTx.js +0 -61
  128. package/lib/utils/coveredCall/getDepositTx.d.ts +0 -1
  129. package/lib/utils/coveredCall/getDepositTx.js +0 -65
  130. package/lib/utils/coveredCall/getEvolutionTx.d.ts +0 -1
  131. package/lib/utils/coveredCall/getEvolutionTx.js +0 -64
  132. package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +0 -1
  133. package/lib/utils/coveredCall/getLastEvolutionTx.js +0 -63
  134. package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +0 -1
  135. package/lib/utils/coveredCall/getMakerClaimAllTx.js +0 -59
  136. package/lib/utils/coveredCall/getMakerClaimTx.d.ts +0 -1
  137. package/lib/utils/coveredCall/getMakerClaimTx.js +0 -59
  138. package/lib/utils/coveredCall/getNewAuctionTx.d.ts +0 -1
  139. package/lib/utils/coveredCall/getNewAuctionTx.js +0 -66
  140. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +0 -1
  141. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +0 -64
  142. package/lib/utils/coveredCall/getNewBidTx.d.ts +0 -1
  143. package/lib/utils/coveredCall/getNewBidTx.js +0 -62
  144. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +0 -1
  145. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +0 -77
  146. package/lib/utils/coveredCall/getNewManagerTx.d.ts +0 -1
  147. package/lib/utils/coveredCall/getNewManagerTx.js +0 -59
  148. package/lib/utils/coveredCall/getRefundTx.d.ts +0 -1
  149. package/lib/utils/coveredCall/getRefundTx.js +0 -59
  150. package/lib/utils/coveredCall/getRemoveBidTx.d.ts +0 -1
  151. package/lib/utils/coveredCall/getRemoveBidTx.js +0 -60
  152. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  153. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +0 -61
  154. package/lib/utils/coveredCall/getRemoveManagerTx.d.ts +0 -1
  155. package/lib/utils/coveredCall/getRemoveManagerTx.js +0 -58
  156. package/lib/utils/coveredCall/getRollOverTx.d.ts +0 -1
  157. package/lib/utils/coveredCall/getRollOverTx.js +0 -60
  158. package/lib/utils/coveredCall/getSettleTx.d.ts +0 -1
  159. package/lib/utils/coveredCall/getSettleTx.js +0 -62
  160. package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +0 -1
  161. package/lib/utils/coveredCall/getSettleWithRollOverTx.js +0 -62
  162. package/lib/utils/coveredCall/getSubscribeTx.d.ts +0 -1
  163. package/lib/utils/coveredCall/getSubscribeTx.js +0 -60
  164. package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +0 -1
  165. package/lib/utils/coveredCall/getUnsubscribeTx.js +0 -63
  166. package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +0 -1
  167. package/lib/utils/coveredCall/getUpdateCapacityTx.js +0 -61
  168. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +0 -1
  169. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +0 -66
  170. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +0 -1
  171. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +0 -62
  172. package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +0 -1
  173. package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +0 -65
  174. package/lib/utils/coveredCall/getWithdrawTx.d.ts +0 -1
  175. package/lib/utils/coveredCall/getWithdrawTx.js +0 -60
  176. package/lib/utils/fetchPortfolioData.d.ts +0 -93
  177. package/lib/utils/fetchPortfolioData.js +0 -205
  178. package/lib/utils/getCreateTokenRegistryTx.d.ts +0 -1
  179. package/lib/utils/getCreateTokenRegistryTx.js +0 -59
  180. package/lib/utils/getMakersShares.d.ts +0 -8
  181. package/lib/utils/getMakersShares.js +0 -145
  182. package/lib/utils/getNewOracleTx.d.ts +0 -1
  183. package/lib/utils/getNewOracleTx.js +0 -59
  184. package/lib/utils/getNewTimeOracleTx.d.ts +0 -1
  185. package/lib/utils/getNewTimeOracleTx.js +0 -56
  186. package/lib/utils/getUpdateOracleTx.d.ts +0 -1
  187. package/lib/utils/getUpdateOracleTx.js +0 -64
  188. package/lib/utils/getUpdateTimeOracleTx.d.ts +0 -1
  189. package/lib/utils/getUpdateTimeOracleTx.js +0 -60
  190. package/lib/utils/getUsersShares.d.ts +0 -9
  191. package/lib/utils/getUsersShares.js +0 -148
  192. package/lib/utils/getVaultIndexInRegistry.d.ts +0 -1
  193. package/lib/utils/getVaultIndexInRegistry.js +0 -61
  194. package/lib/utils/isObjAvailable.d.ts +0 -0
  195. package/lib/utils/isObjAvailable.js +0 -14
  196. package/lib/utils/loadUsersDepositData.d.ts +0 -8
  197. package/lib/utils/loadUsersDepositData.js +0 -160
  198. package/lib/utils/portfolio/authorized/getAuthorizedEvolutionTx.d.ts +0 -1
  199. package/lib/utils/portfolio/authorized/getAuthorizedLastEvolutionTx.d.ts +0 -1
  200. package/lib/utils/portfolio/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -4
  201. package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
  202. package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.js +0 -64
  203. package/lib/utils/portfolio/manager/getLastEvolutionTx.d.ts +0 -1
  204. package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.d.ts +0 -4
  205. package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.js +0 -71
  206. package/lib/utils/portfolio/manager/getUpdateVaultConfigTx.d.ts +0 -1
  207. package/lib/utils/portfolio/user/getCompoundPremiumTx.d.ts +0 -1
  208. package/lib/utils/portfolio/user/getCompoundPremiumTx.js +0 -60
  209. /package/lib/test/{getMakersShares.d.ts → authorized/testAuthorizedNewPortfolioVault.d.ts} +0 -0
  210. /package/lib/test/{getUsersShares.d.ts → authorized/testAuthorizedUpdateUpcomingVaultConfig.d.ts} +0 -0
  211. /package/lib/test/{testClaim.d.ts → authorized/testAuthorizedUpdateWarmupVaultConfig.d.ts} +0 -0
  212. /package/lib/test/{testDeposit.d.ts → helper/getAuctionMaxSize.d.ts} +0 -0
  213. /package/lib/test/{testNewAuction.d.ts → helper/getUserStatus.d.ts} +0 -0
  214. /package/lib/test/{testNewVault.d.ts → user/testClaim.d.ts} +0 -0
  215. /package/lib/test/{testOracle.d.ts → user/testCompound.d.ts} +0 -0
  216. /package/lib/test/{testSettle.d.ts → user/testDeposit.d.ts} +0 -0
  217. /package/lib/test/{testUnsubscribe.d.ts → user/testHarvest.d.ts} +0 -0
  218. /package/lib/test/{testWithdraw.d.ts → user/testNewBid.d.ts} +0 -0
@@ -58,6 +58,7 @@ exports.getAuthorizedNewPortfolioVaultTx = void 0;
58
58
  final_price: u64,
59
59
  auction_duration_in_ms: u64,
60
60
  leverage: u64,
61
+ has_next: bool,
61
62
  whitelist: vector<address>,
62
63
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
63
64
  */
@@ -69,11 +70,11 @@ dTokenDecimal, // u64
69
70
  bTokenDecimal, // u64
70
71
  oTokenDecimal, // u64
71
72
  capacity, // u64
72
- strikeOtmPct, // vector<u64>
73
+ strikePct, // vector<u64>
73
74
  weight, // vector<u64>
74
75
  isBuyer, // vector<bool>
75
76
  strikeIncrement, // u64
76
- lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
77
+ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage, hasNext) {
77
78
  return __awaiter(this, void 0, void 0, function () {
78
79
  var tx;
79
80
  return __generator(this, function (_a) {
@@ -93,7 +94,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
93
94
  bTokenDecimal,
94
95
  oTokenDecimal,
95
96
  capacity,
96
- strikeOtmPct,
97
+ strikePct,
97
98
  weight,
98
99
  isBuyer,
99
100
  strikeIncrement,
@@ -103,6 +104,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
103
104
  finalPrice,
104
105
  auctionDurationInMs,
105
106
  leverage,
107
+ hasNext,
106
108
  whitelist,
107
109
  ],
108
110
  gasBudget: gasBudget,
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
3
3
  */
4
- export declare function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
4
+ export declare function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, addresses: string[]): Promise<any>;
@@ -40,7 +40,7 @@ exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = void 0;
40
40
  /**
41
41
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
42
42
  */
43
- function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArguments, index, address) {
43
+ function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArguments, index, addresses) {
44
44
  return __awaiter(this, void 0, void 0, function () {
45
45
  var tx;
46
46
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId,
52
52
  arguments: [
53
53
  registry,
54
54
  index,
55
- address,
55
+ addresses,
56
56
  ],
57
57
  gasBudget: gasBudget,
58
58
  };
@@ -0,0 +1,4 @@
1
+ export declare function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, strikePct: string[], // vector<u64>
2
+ weight: string[], // vector<u64>
3
+ isBuyer: boolean[], // vector<bool>
4
+ strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getAuthorizedUpdateNextVaultConfigTx = void 0;
40
- function getAuthorizedUpdateNextVaultConfigTx(gasBudget, packageId, registry, typeArguments, index, strikeOtmPct, // vector<u64>
39
+ exports.getAuthorizedUpdateUpcomingVaultConfigTx = void 0;
40
+ function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget, packageId, registry, typeArguments, index, strikePct, // vector<u64>
41
41
  weight, // vector<u64>
42
42
  isBuyer, // vector<bool>
43
43
  strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
@@ -47,12 +47,12 @@ strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
47
47
  tx = {
48
48
  packageObjectId: packageId,
49
49
  module: 'portfolio',
50
- function: 'authorized_update_next_vault_config',
50
+ function: 'authorized_update_upcoming_vault_config',
51
51
  typeArguments: typeArguments,
52
52
  arguments: [
53
53
  registry,
54
54
  index,
55
- strikeOtmPct,
55
+ strikePct,
56
56
  weight,
57
57
  isBuyer,
58
58
  strikeIncrement,
@@ -67,4 +67,4 @@ strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
67
67
  });
68
68
  });
69
69
  }
70
- exports.getAuthorizedUpdateNextVaultConfigTx = getAuthorizedUpdateNextVaultConfigTx;
70
+ exports.getAuthorizedUpdateUpcomingVaultConfigTx = getAuthorizedUpdateUpcomingVaultConfigTx;
@@ -0,0 +1 @@
1
+ export declare function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
@@ -36,18 +36,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getUpdateVaultConfigTx = void 0;
40
- function getUpdateVaultConfigTx(gasBudget, packageId, managerCap, typeArguments, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
39
+ exports.getAuthorizedUpdateWarmupVaultConfigTx = void 0;
40
+ function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget, packageId, typeArguments, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
44
44
  tx = {
45
45
  packageObjectId: packageId,
46
46
  module: 'portfolio',
47
- function: 'update_vault_config',
47
+ function: 'authorized_update_warmup_vault_config',
48
48
  typeArguments: typeArguments,
49
49
  arguments: [
50
- managerCap,
51
50
  registry,
52
51
  index,
53
52
  strikeIncrement,
@@ -62,4 +61,4 @@ function getUpdateVaultConfigTx(gasBudget, packageId, managerCap, typeArguments,
62
61
  });
63
62
  });
64
63
  }
65
- exports.getUpdateVaultConfigTx = getUpdateVaultConfigTx;
64
+ exports.getAuthorizedUpdateWarmupVaultConfigTx = getAuthorizedUpdateWarmupVaultConfigTx;
@@ -0,0 +1,8 @@
1
+ /**
2
+ public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ registry: &Registry,
4
+ index: u64,
5
+ price_oracle: &Oracle<O_TOKEN>,
6
+ ): u64
7
+ */
8
+ export declare function getAuctionMaxSize(packageId: string, typeArguments: string[], registry: string, index: string, priceOracle: string): Promise<any>;
@@ -36,27 +36,31 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getLastEvolutionTx = void 0;
40
- function getLastEvolutionTx(gasBudget, packageId, registry, typeArguments, managerCap, index, priceOracle, timeOracle) {
39
+ exports.getAuctionMaxSize = void 0;
40
+ /**
41
+ public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ registry: &Registry,
43
+ index: u64,
44
+ price_oracle: &Oracle<O_TOKEN>,
45
+ ): u64
46
+ */
47
+ function getAuctionMaxSize(packageId, typeArguments, registry, index, priceOracle) {
41
48
  return __awaiter(this, void 0, void 0, function () {
42
49
  var tx;
43
50
  return __generator(this, function (_a) {
44
51
  tx = {
45
52
  packageObjectId: packageId,
46
53
  module: 'portfolio',
47
- function: 'last_evolution',
54
+ function: 'get_auction_max_size',
48
55
  typeArguments: typeArguments,
49
56
  arguments: [
50
- managerCap,
51
57
  registry,
52
58
  index,
53
59
  priceOracle,
54
- timeOracle,
55
60
  ],
56
- gasBudget: gasBudget,
57
61
  };
58
62
  return [2 /*return*/, tx];
59
63
  });
60
64
  });
61
65
  }
62
- exports.getLastEvolutionTx = getLastEvolutionTx;
66
+ exports.getAuctionMaxSize = getAuctionMaxSize;
@@ -0,0 +1,29 @@
1
+ /**
2
+ struct GetUserStatusResult has copy, drop {
3
+ active: u64,
4
+ deactivating: u64,
5
+ inactive: u64,
6
+ warmup: u64,
7
+ bidder: u64,
8
+ premium: u64,
9
+ performance_fee: u64,
10
+ }
11
+ public fun get_user_status<D_TOKEN, B_TOKEN, O_TOKEN>(
12
+ registry: &Registry,
13
+ index: u64,
14
+ user: address,
15
+ ): GetUserStatusResult
16
+ */
17
+ export declare function getUserStatus(packageId: string, typeArguments: string[], registry: string, index: string, userAddress: string): Promise<any>;
18
+ interface GetUserStatusResult {
19
+ active: number;
20
+ deactivating: number;
21
+ inactive: number;
22
+ warmup: number;
23
+ bidder: number;
24
+ premium: number;
25
+ performance_fee: number;
26
+ }
27
+ export declare function parseUserStatusResult(rawData: Uint8Array): GetUserStatusResult;
28
+ export declare function intFromBytes(x: any): number;
29
+ export {};
@@ -36,28 +36,69 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getAuthorizedEvolutionTx = void 0;
40
- function getAuthorizedEvolutionTx(gasBudget, packageId, registry, typeArguments, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
39
+ exports.intFromBytes = exports.parseUserStatusResult = exports.getUserStatus = void 0;
40
+ /**
41
+ struct GetUserStatusResult has copy, drop {
42
+ active: u64,
43
+ deactivating: u64,
44
+ inactive: u64,
45
+ warmup: u64,
46
+ bidder: u64,
47
+ premium: u64,
48
+ performance_fee: u64,
49
+ }
50
+ public fun get_user_status<D_TOKEN, B_TOKEN, O_TOKEN>(
51
+ registry: &Registry,
52
+ index: u64,
53
+ user: address,
54
+ ): GetUserStatusResult
55
+ */
56
+ function getUserStatus(packageId, typeArguments, registry, index, userAddress) {
41
57
  return __awaiter(this, void 0, void 0, function () {
42
58
  var tx;
43
59
  return __generator(this, function (_a) {
44
60
  tx = {
45
61
  packageObjectId: packageId,
46
62
  module: 'portfolio',
47
- function: 'authorized_evolution',
63
+ function: 'get_user_status',
48
64
  typeArguments: typeArguments,
49
65
  arguments: [
50
66
  registry,
51
67
  index,
52
- priceOracle,
53
- timeOracle,
54
- activationTsMs,
55
- expirationTsMs,
68
+ userAddress,
56
69
  ],
57
- gasBudget: gasBudget,
58
70
  };
59
71
  return [2 /*return*/, tx];
60
72
  });
61
73
  });
62
74
  }
63
- exports.getAuthorizedEvolutionTx = getAuthorizedEvolutionTx;
75
+ exports.getUserStatus = getUserStatus;
76
+ function parseUserStatusResult(rawData) {
77
+ var temp = [];
78
+ for (var i = 0; i < rawData.length / 8; ++i) {
79
+ // console.log(i)
80
+ temp.push(intFromBytes(rawData.slice(i * 8, (i + 1) * 8).reverse()));
81
+ }
82
+ var userStatusResult = {
83
+ active: temp[0],
84
+ deactivating: temp[1],
85
+ inactive: temp[2],
86
+ warmup: temp[3],
87
+ bidder: temp[4],
88
+ premium: temp[5],
89
+ performance_fee: temp[6],
90
+ };
91
+ return userStatusResult;
92
+ }
93
+ exports.parseUserStatusResult = parseUserStatusResult;
94
+ function intFromBytes(x) {
95
+ var val = 0;
96
+ for (var i = 0; i < x.length; ++i) {
97
+ val += x[i];
98
+ if (i < x.length - 1) {
99
+ val = val << 8;
100
+ }
101
+ }
102
+ return val;
103
+ }
104
+ exports.intFromBytes = intFromBytes;
@@ -1 +1,8 @@
1
- export declare function getAddAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, address: string): Promise<any>;
1
+ /**
2
+ public(friend) entry fun add_authorized_user(
3
+ manager_cap: & ManagerCap,
4
+ registry: & mut Registry,
5
+ user_addresses: vector<address>,
6
+ )
7
+ */
8
+ export declare function getAddAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, userAddresses: string[]): Promise<any>;
@@ -37,7 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAddAuthorizedUserTx = void 0;
40
- function getAddAuthorizedUserTx(gasBudget, packageId, managerCap, registry, address) {
40
+ /**
41
+ public(friend) entry fun add_authorized_user(
42
+ manager_cap: & ManagerCap,
43
+ registry: & mut Registry,
44
+ user_addresses: vector<address>,
45
+ )
46
+ */
47
+ function getAddAuthorizedUserTx(gasBudget, packageId, managerCap, registry, userAddresses) {
41
48
  return __awaiter(this, void 0, void 0, function () {
42
49
  var tx;
43
50
  return __generator(this, function (_a) {
@@ -49,7 +56,7 @@ function getAddAuthorizedUserTx(gasBudget, packageId, managerCap, registry, addr
49
56
  arguments: [
50
57
  managerCap,
51
58
  registry,
52
- address,
59
+ userAddresses,
53
60
  ],
54
61
  gasBudget: gasBudget,
55
62
  };
@@ -1,4 +1,10 @@
1
1
  /**
2
+ public(friend) entry fun add_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ manager_cap: &ManagerCap,
4
+ registry: &mut Registry,
5
+ index: u64,
6
+ user_address: address,
7
+ )
2
8
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
3
9
  */
4
10
  export declare function getAddPortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
@@ -38,6 +38,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAddPortfolioVaultAuthorizedUserTx = void 0;
40
40
  /**
41
+ public(friend) entry fun add_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ manager_cap: &ManagerCap,
43
+ registry: &mut Registry,
44
+ index: u64,
45
+ user_address: address,
46
+ )
41
47
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
42
48
  */
43
49
  function getAddPortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
@@ -1 +1,15 @@
1
- export declare function getEvolutionTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string, expirationTsMs: string): Promise<any>;
1
+ /**
2
+ public(friend) entry fun evolution<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ manager_cap: & ManagerCap,
4
+ registry: & mut Registry,
5
+ index: u64,
6
+ price_oracle: & Oracle<O_TOKEN>,
7
+ time_oracle: & Time,
8
+ activation_ts_ms: Option<u64>,
9
+ expiration_ts_ms: Option<u64>,
10
+ ctx: & mut TxContext,
11
+ )
12
+ * @param activationTsMs if has_next gives ['<number>'], if not gives []
13
+ * @param expirationTsMs if has_next gives ['<number>'], if not gives []
14
+ */
15
+ export declare function getEvolutionTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string[], expirationTsMs: string[]): Promise<any>;
@@ -37,6 +37,20 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getEvolutionTx = void 0;
40
+ /**
41
+ public(friend) entry fun evolution<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ manager_cap: & ManagerCap,
43
+ registry: & mut Registry,
44
+ index: u64,
45
+ price_oracle: & Oracle<O_TOKEN>,
46
+ time_oracle: & Time,
47
+ activation_ts_ms: Option<u64>,
48
+ expiration_ts_ms: Option<u64>,
49
+ ctx: & mut TxContext,
50
+ )
51
+ * @param activationTsMs if has_next gives ['<number>'], if not gives []
52
+ * @param expirationTsMs if has_next gives ['<number>'], if not gives []
53
+ */
40
54
  function getEvolutionTx(gasBudget, packageId, registry, typeArguments, managerCap, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
41
55
  return __awaiter(this, void 0, void 0, function () {
42
56
  var tx;
@@ -1 +1,8 @@
1
- export declare function getNewManagerTx(gasBudget: number, packageId: string, managerCap: string, address: string): Promise<any>;
1
+ /**
2
+ public(friend) entry fun new_manager(
3
+ _manager_cap: &ManagerCap,
4
+ users: vector<address>,
5
+ ctx: &mut TxContext
6
+ )
7
+ */
8
+ export declare function getNewManagerTx(gasBudget: number, packageId: string, managerCap: string, addresses: string[]): Promise<any>;
@@ -37,7 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewManagerTx = void 0;
40
- function getNewManagerTx(gasBudget, packageId, managerCap, address) {
40
+ /**
41
+ public(friend) entry fun new_manager(
42
+ _manager_cap: &ManagerCap,
43
+ users: vector<address>,
44
+ ctx: &mut TxContext
45
+ )
46
+ */
47
+ function getNewManagerTx(gasBudget, packageId, managerCap, addresses) {
41
48
  return __awaiter(this, void 0, void 0, function () {
42
49
  var tx;
43
50
  return __generator(this, function (_a) {
@@ -48,7 +55,7 @@ function getNewManagerTx(gasBudget, packageId, managerCap, address) {
48
55
  typeArguments: [],
49
56
  arguments: [
50
57
  managerCap,
51
- address,
58
+ addresses,
52
59
  ],
53
60
  gasBudget: gasBudget,
54
61
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
- * manager_cap: & ManagerCap,
3
- registry: & mut Registry,
4
- time_oracle: & Time,
2
+ manager_cap: &ManagerCap,
3
+ registry: &mut Registry,
4
+ time_oracle: &Time,
5
5
  option_type: u64,
6
6
  period: u8,
7
7
  activation_ts_ms: u64,
@@ -31,8 +31,8 @@ dTokenDecimal: string, // u64
31
31
  bTokenDecimal: string, // u64
32
32
  oTokenDecimal: string, // u64
33
33
  capacity: string, // u64
34
- strikeOtmPct: string[], // vector<u64>
34
+ strikePct: string[], // vector<u64>
35
35
  weight: string[], // vector<u64>
36
- isBuyer: string[], // vector<bool>
36
+ isBuyer: boolean[], // vector<bool>
37
37
  strikeIncrement: string, // u64
38
38
  lotSize: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
@@ -38,9 +38,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewPortfolioVaultTx = void 0;
40
40
  /**
41
- * manager_cap: & ManagerCap,
42
- registry: & mut Registry,
43
- time_oracle: & Time,
41
+ manager_cap: &ManagerCap,
42
+ registry: &mut Registry,
43
+ time_oracle: &Time,
44
44
  option_type: u64,
45
45
  period: u8,
46
46
  activation_ts_ms: u64,
@@ -70,7 +70,7 @@ dTokenDecimal, // u64
70
70
  bTokenDecimal, // u64
71
71
  oTokenDecimal, // u64
72
72
  capacity, // u64
73
- strikeOtmPct, // vector<u64>
73
+ strikePct, // vector<u64>
74
74
  weight, // vector<u64>
75
75
  isBuyer, // vector<bool>
76
76
  strikeIncrement, // u64
@@ -95,7 +95,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
95
95
  bTokenDecimal,
96
96
  oTokenDecimal,
97
97
  capacity,
98
- strikeOtmPct,
98
+ strikePct,
99
99
  weight,
100
100
  isBuyer,
101
101
  strikeIncrement,
@@ -1 +1,8 @@
1
+ /**
2
+ public(friend) entry fun remove_authorized_user(
3
+ manager_cap: &ManagerCap,
4
+ registry: &mut Registry,
5
+ user_address: address,
6
+ )
7
+ */
1
8
  export declare function getRemoveAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, address: string): Promise<any>;
@@ -37,6 +37,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRemoveAuthorizedUserTx = void 0;
40
+ /**
41
+ public(friend) entry fun remove_authorized_user(
42
+ manager_cap: &ManagerCap,
43
+ registry: &mut Registry,
44
+ user_address: address,
45
+ )
46
+ */
40
47
  function getRemoveAuthorizedUserTx(gasBudget, packageId, managerCap, registry, address) {
41
48
  return __awaiter(this, void 0, void 0, function () {
42
49
  var tx;
@@ -1 +1,6 @@
1
+ /**
2
+ public(friend) entry fun remove_manager(
3
+ manager_cap: ManagerCap,
4
+ )
5
+ */
1
6
  export declare function getRemoveManagerTx(gasBudget: number, packageId: string, managerCap: string): Promise<any>;
@@ -37,6 +37,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRemoveManagerTx = void 0;
40
+ /**
41
+ public(friend) entry fun remove_manager(
42
+ manager_cap: ManagerCap,
43
+ )
44
+ */
40
45
  function getRemoveManagerTx(gasBudget, packageId, managerCap) {
41
46
  return __awaiter(this, void 0, void 0, function () {
42
47
  var tx;
@@ -1,4 +1,10 @@
1
1
  /**
2
+ public(friend) entry fun remove_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ manager_cap: &ManagerCap,
4
+ registry: &mut Registry,
5
+ index: u64,
6
+ user_address: address,
7
+ )
2
8
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
3
- */
9
+ */
4
10
  export declare function getRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
@@ -38,8 +38,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRemovePortfolioVaultAuthorizedUserTx = void 0;
40
40
  /**
41
+ public(friend) entry fun remove_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ manager_cap: &ManagerCap,
43
+ registry: &mut Registry,
44
+ index: u64,
45
+ user_address: address,
46
+ )
41
47
  * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
42
- */
48
+ */
43
49
  function getRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
44
50
  return __awaiter(this, void 0, void 0, function () {
45
51
  var tx;
@@ -1 +1,9 @@
1
- export declare function getHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[]): Promise<any>;
1
+ /**
2
+ public(friend) entry fun claim_and_harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ registry: &mut Registry,
4
+ index: u64,
5
+ ctx: &mut TxContext
6
+ )
7
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
8
+ */
9
+ export declare function getClaimAndHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string): Promise<any>;
@@ -36,8 +36,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getHarvestTx = void 0;
40
- function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
39
+ exports.getClaimAndHarvestTx = void 0;
40
+ /**
41
+ public(friend) entry fun claim_and_harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ registry: &mut Registry,
43
+ index: u64,
44
+ ctx: &mut TxContext
45
+ )
46
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
47
+ */
48
+ function getClaimAndHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
41
49
  return __awaiter(this, void 0, void 0, function () {
42
50
  var tx;
43
51
  return __generator(this, function (_a) {
@@ -56,4 +64,4 @@ function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
56
64
  });
57
65
  });
58
66
  }
59
- exports.getHarvestTx = getHarvestTx;
67
+ exports.getClaimAndHarvestTx = getClaimAndHarvestTx;
@@ -1 +1,9 @@
1
- export declare function getClaimTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[]): Promise<any>;
1
+ /**
2
+ public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
3
+ registry: &mut Registry,
4
+ index: u64,
5
+ ctx: &mut TxContext
6
+ )
7
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
8
+ */
9
+ export declare function getClaimTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string): Promise<any>;
@@ -37,6 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getClaimTx = void 0;
40
+ /**
41
+ public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
42
+ registry: &mut Registry,
43
+ index: u64,
44
+ ctx: &mut TxContext
45
+ )
46
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
47
+ */
40
48
  function getClaimTx(gasBudget, packageId, registry, typeArguments, index) {
41
49
  return __awaiter(this, void 0, void 0, function () {
42
50
  var tx;
@@ -0,0 +1,9 @@
1
+ /**
2
+ public entry fun compound<TOKEN, O_TOKEN>(
3
+ registry: &mut Registry,
4
+ index: u64,
5
+ ctx: &mut TxContext,
6
+ )
7
+ * @param typeArguments [TOKEN, O_TOKEN]
8
+ */
9
+ export declare function getCompoundTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string): Promise<any>;