@typus/typus-sdk 0.6.2 → 1.0.0

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 (193) hide show
  1. package/lib/config.json +20 -0
  2. package/lib/constants.d.ts +12 -16
  3. package/lib/constants.js +17 -17
  4. package/lib/test/authorized/testAuthorizedNewPortfolioVault.js +82 -0
  5. package/lib/test/{testClaim.js → authorized/testAuthorizedUpdateUpcomingVaultConfig.js} +20 -31
  6. package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.js +68 -0
  7. package/lib/test/getBidData.js +1 -1
  8. package/lib/test/getVaultData.js +2 -2
  9. package/lib/test/getWhiteListFromRegistry.js +2 -2
  10. package/lib/test/helper/getAuctionMaxSize.js +76 -0
  11. package/lib/test/helper/getUserStatus.js +75 -0
  12. package/lib/test/testCrypto.js +1 -1
  13. package/lib/test/testMint.js +2 -2
  14. package/lib/test/testSubscribeEvent.js +1 -1
  15. package/lib/test/{testWithdraw.js → user/testClaim.js} +15 -18
  16. package/lib/test/{getMakersShares.js → user/testCompound.js} +21 -7
  17. package/lib/test/{testUnsubscribe.js → user/testDeposit.js} +29 -38
  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} +16 -20
  24. package/lib/utils/auction/getBid.js +1 -1
  25. package/lib/utils/fetchData.d.ts +72 -60
  26. package/lib/utils/fetchData.js +27 -199
  27. package/lib/utils/getMintTx.js +1 -1
  28. package/lib/utils/getTypeArgumentFromToken.js +1 -1
  29. package/lib/utils/getVaultData.d.ts +3 -2
  30. package/lib/utils/getVaultData.js +139 -159
  31. package/lib/utils/getWhiteListFromRegistry.js +1 -2
  32. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +4 -0
  33. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +63 -0
  34. package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.d.ts +1 -0
  35. package/lib/utils/{authorized → portfolio/authorized}/getAuthorizedDeliveryTx.js +10 -5
  36. package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +38 -0
  37. package/lib/utils/{authorized/getAuthorizedNewCoveredCallVaultTx.js → portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js} +53 -13
  38. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +4 -0
  39. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +63 -0
  40. package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -0
  41. package/lib/utils/{authorized → portfolio/authorized}/getAuthorizedUpdateCapacityTx.js +9 -5
  42. package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.d.ts +4 -0
  43. package/lib/utils/{authorized/getAuthorizedUpdateVaultConfigTx.js → portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.js} +13 -7
  44. package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.d.ts +1 -0
  45. package/lib/utils/{authorized/getAuthorizedUpdateNextVaultConfigTx.js → portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.js} +7 -8
  46. package/lib/utils/portfolio/helper/getAuctionMaxSize.d.ts +8 -0
  47. package/lib/utils/{coveredCall/getLastEvolutionTx.js → portfolio/helper/getAuctionMaxSize.js} +14 -11
  48. package/lib/utils/portfolio/helper/getUserStatus.d.ts +29 -0
  49. package/lib/utils/portfolio/helper/getUserStatus.js +104 -0
  50. package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +8 -0
  51. package/lib/utils/{getUpdateTimeOracleTx.js → portfolio/manager/getAddAuthorizedUserTx.js} +15 -8
  52. package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +10 -0
  53. package/lib/utils/{coveredCall/getUpdateNextVaultConfigTx.js → portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js} +17 -13
  54. package/lib/utils/portfolio/manager/getCloseAuctionTx.d.ts +1 -0
  55. package/lib/utils/{coveredCall → portfolio/manager}/getCloseAuctionTx.js +6 -5
  56. package/lib/utils/portfolio/manager/getCloseVaultTx.d.ts +1 -0
  57. package/lib/utils/{coveredCall → portfolio/manager}/getCloseVaultTx.js +4 -4
  58. package/lib/utils/portfolio/manager/getDeliveryTx.d.ts +1 -0
  59. package/lib/utils/{coveredCall → portfolio/manager}/getDeliveryTx.js +5 -4
  60. package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +15 -0
  61. package/lib/utils/{coveredCall → portfolio/manager}/getEvolutionTx.js +18 -4
  62. package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +8 -0
  63. package/lib/utils/{coveredCall → portfolio/manager}/getNewManagerTx.js +11 -4
  64. package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +38 -0
  65. package/lib/utils/{coveredCall/getNewCoveredCallVaultTx.js → portfolio/manager/getNewPortfolioVaultTx.js} +52 -13
  66. package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +8 -0
  67. package/lib/utils/{coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js → portfolio/manager/getRemoveAuthorizedUserTx.js} +14 -8
  68. package/lib/utils/{coveredCall → portfolio/manager}/getRemoveManagerTx.d.ts +5 -0
  69. package/lib/utils/{coveredCall → portfolio/manager}/getRemoveManagerTx.js +7 -2
  70. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +10 -0
  71. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +70 -0
  72. package/lib/utils/portfolio/manager/getUpdateCapacityTx.d.ts +1 -0
  73. package/lib/utils/{coveredCall → portfolio/manager}/getUpdateCapacityTx.js +4 -4
  74. package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +9 -0
  75. package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +67 -0
  76. package/lib/utils/portfolio/user/getClaimTx.d.ts +9 -0
  77. package/lib/utils/{coveredCall → portfolio/user}/getClaimTx.js +12 -4
  78. package/lib/utils/portfolio/user/getCompoundTx.d.ts +9 -0
  79. package/lib/utils/{coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js → portfolio/user/getCompoundTx.js} +15 -9
  80. package/lib/utils/portfolio/user/getDepositTx.d.ts +11 -0
  81. package/lib/utils/{coveredCall → portfolio/user}/getDepositTx.js +15 -9
  82. package/lib/utils/portfolio/user/getHarvestTx.d.ts +9 -0
  83. package/lib/utils/{coveredCall/getClaimAllTx.js → portfolio/user/getHarvestTx.js} +15 -7
  84. package/lib/utils/portfolio/user/getNewBidTx.d.ts +13 -0
  85. package/lib/utils/{coveredCall → portfolio/user}/getNewBidTx.js +21 -8
  86. package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +10 -0
  87. package/lib/utils/{coveredCall → portfolio/user}/getUnsubscribeTx.js +14 -8
  88. package/lib/utils/portfolio/user/getWithdrawTx.d.ts +10 -0
  89. package/lib/utils/{coveredCall → portfolio/user}/getWithdrawTx.js +13 -4
  90. package/package.json +2 -2
  91. package/lib/test/eventListener.d.ts +0 -5
  92. package/lib/test/eventListener.js +0 -395
  93. package/lib/test/testDepositV2.d.ts +0 -0
  94. package/lib/test/testDepositV2.js +0 -64
  95. package/lib/test/testNewAuction.js +0 -94
  96. package/lib/test/testNewVault.js +0 -153
  97. package/lib/test/testOracle.js +0 -94
  98. package/lib/test/testSettle.js +0 -590
  99. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +0 -1
  100. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +0 -56
  101. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  102. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +0 -56
  103. package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +0 -1
  104. package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +0 -1
  105. package/lib/utils/authorized/getAuthorizedEvolutionTx.js +0 -56
  106. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +0 -1
  107. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +0 -56
  108. package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +0 -1
  109. package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +0 -56
  110. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +0 -1
  111. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +0 -1
  112. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +0 -56
  113. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  114. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +0 -56
  115. package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +0 -1
  116. package/lib/utils/authorized/getAuthorizedSettleTx.js +0 -56
  117. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +0 -1
  118. package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -1
  119. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
  120. package/lib/utils/coveredCall/createPriceOracle.d.ts +0 -1
  121. package/lib/utils/coveredCall/createPriceOracle.js +0 -93
  122. package/lib/utils/coveredCall/createTimeOracle.d.ts +0 -1
  123. package/lib/utils/coveredCall/createTimeOracle.js +0 -92
  124. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  125. package/lib/utils/coveredCall/getClaimAllTx.d.ts +0 -1
  126. package/lib/utils/coveredCall/getClaimTx.d.ts +0 -1
  127. package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +0 -1
  128. package/lib/utils/coveredCall/getCloseVaultTx.d.ts +0 -1
  129. package/lib/utils/coveredCall/getDeliveryTx.d.ts +0 -1
  130. package/lib/utils/coveredCall/getDepositTx.d.ts +0 -1
  131. package/lib/utils/coveredCall/getEvolutionTx.d.ts +0 -1
  132. package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +0 -1
  133. package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +0 -1
  134. package/lib/utils/coveredCall/getMakerClaimAllTx.js +0 -59
  135. package/lib/utils/coveredCall/getMakerClaimTx.d.ts +0 -1
  136. package/lib/utils/coveredCall/getMakerClaimTx.js +0 -59
  137. package/lib/utils/coveredCall/getNewAuctionTx.d.ts +0 -1
  138. package/lib/utils/coveredCall/getNewAuctionTx.js +0 -66
  139. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +0 -1
  140. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +0 -64
  141. package/lib/utils/coveredCall/getNewBidTx.d.ts +0 -1
  142. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +0 -1
  143. package/lib/utils/coveredCall/getNewManagerTx.d.ts +0 -1
  144. package/lib/utils/coveredCall/getRefundTx.d.ts +0 -1
  145. package/lib/utils/coveredCall/getRefundTx.js +0 -59
  146. package/lib/utils/coveredCall/getRemoveBidTx.d.ts +0 -1
  147. package/lib/utils/coveredCall/getRemoveBidTx.js +0 -60
  148. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
  149. package/lib/utils/coveredCall/getRollOverTx.d.ts +0 -1
  150. package/lib/utils/coveredCall/getRollOverTx.js +0 -60
  151. package/lib/utils/coveredCall/getSettleTx.d.ts +0 -1
  152. package/lib/utils/coveredCall/getSettleTx.js +0 -62
  153. package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +0 -1
  154. package/lib/utils/coveredCall/getSettleWithRollOverTx.js +0 -62
  155. package/lib/utils/coveredCall/getSubscribeTx.d.ts +0 -1
  156. package/lib/utils/coveredCall/getSubscribeTx.js +0 -60
  157. package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +0 -1
  158. package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +0 -1
  159. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +0 -1
  160. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +0 -1
  161. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +0 -62
  162. package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +0 -1
  163. package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +0 -65
  164. package/lib/utils/coveredCall/getWithdrawTx.d.ts +0 -1
  165. package/lib/utils/getCreateTokenRegistryTx.d.ts +0 -1
  166. package/lib/utils/getCreateTokenRegistryTx.js +0 -59
  167. package/lib/utils/getMakersShares.d.ts +0 -8
  168. package/lib/utils/getMakersShares.js +0 -145
  169. package/lib/utils/getNewOracleTx.d.ts +0 -1
  170. package/lib/utils/getNewOracleTx.js +0 -59
  171. package/lib/utils/getNewTimeOracleTx.d.ts +0 -1
  172. package/lib/utils/getNewTimeOracleTx.js +0 -56
  173. package/lib/utils/getUpdateOracleTx.d.ts +0 -1
  174. package/lib/utils/getUpdateOracleTx.js +0 -64
  175. package/lib/utils/getUpdateTimeOracleTx.d.ts +0 -1
  176. package/lib/utils/getUsersShares.d.ts +0 -9
  177. package/lib/utils/getUsersShares.js +0 -148
  178. package/lib/utils/getVaultIndexInRegistry.d.ts +0 -1
  179. package/lib/utils/getVaultIndexInRegistry.js +0 -61
  180. package/lib/utils/isObjAvailable.d.ts +0 -0
  181. package/lib/utils/isObjAvailable.js +0 -14
  182. package/lib/utils/loadUsersDepositData.d.ts +0 -8
  183. package/lib/utils/loadUsersDepositData.js +0 -157
  184. /package/lib/test/{getMakersShares.d.ts → authorized/testAuthorizedNewPortfolioVault.d.ts} +0 -0
  185. /package/lib/test/{getUsersShares.d.ts → authorized/testAuthorizedUpdateUpcomingVaultConfig.d.ts} +0 -0
  186. /package/lib/test/{testClaim.d.ts → authorized/testAuthorizedUpdateWarmupVaultConfig.d.ts} +0 -0
  187. /package/lib/test/{testDeposit.d.ts → helper/getAuctionMaxSize.d.ts} +0 -0
  188. /package/lib/test/{testNewAuction.d.ts → helper/getUserStatus.d.ts} +0 -0
  189. /package/lib/test/{testNewVault.d.ts → user/testClaim.d.ts} +0 -0
  190. /package/lib/test/{testOracle.d.ts → user/testCompound.d.ts} +0 -0
  191. /package/lib/test/{testSettle.d.ts → user/testDeposit.d.ts} +0 -0
  192. /package/lib/test/{testUnsubscribe.d.ts → user/testHarvest.d.ts} +0 -0
  193. /package/lib/test/{testWithdraw.d.ts → user/testNewBid.d.ts} +0 -0
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -36,20 +36,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getUpdateTimeOracleTx = void 0;
40
- function getUpdateTimeOracleTx(gasBudget, packageId, oracle, managerCap, ts) {
39
+ exports.getAddAuthorizedUserTx = void 0;
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) {
44
51
  tx = {
45
52
  packageObjectId: packageId,
46
- module: 'unix_time',
47
- function: 'update',
53
+ module: 'portfolio',
54
+ function: 'add_authorized_user',
48
55
  typeArguments: [],
49
56
  arguments: [
50
- oracle,
51
57
  managerCap,
52
- ts
58
+ registry,
59
+ userAddresses,
53
60
  ],
54
61
  gasBudget: gasBudget,
55
62
  };
@@ -57,4 +64,4 @@ function getUpdateTimeOracleTx(gasBudget, packageId, oracle, managerCap, ts) {
57
64
  });
58
65
  });
59
66
  }
60
- exports.getUpdateTimeOracleTx = getUpdateTimeOracleTx;
67
+ exports.getAddAuthorizedUserTx = getAddAuthorizedUserTx;
@@ -0,0 +1,10 @@
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
+ )
8
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
9
+ */
10
+ export declare function getAddPortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -36,26 +36,30 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getUpdateNextVaultConfigTx = void 0;
40
- function getUpdateNextVaultConfigTx(gasBudget, packageId, managerCap, registry, typeArgument, index, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
39
+ exports.getAddPortfolioVaultAuthorizedUserTx = void 0;
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
+ )
47
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
48
+ */
49
+ function getAddPortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
41
50
  return __awaiter(this, void 0, void 0, function () {
42
51
  var tx;
43
52
  return __generator(this, function (_a) {
44
53
  tx = {
45
54
  packageObjectId: packageId,
46
- module: 'covered_call',
47
- function: 'update_next_vault_config',
48
- typeArguments: [typeArgument],
55
+ module: 'portfolio',
56
+ function: 'add_portfolio_vault_authorized_user',
57
+ typeArguments: typeArguments,
49
58
  arguments: [
50
59
  managerCap,
51
60
  registry,
52
61
  index,
53
- strikeOtmPct,
54
- strikeIncrement,
55
- decaySpeed,
56
- initialPrice,
57
- finalPrice,
58
- auctionDurationInMs,
62
+ address,
59
63
  ],
60
64
  gasBudget: gasBudget,
61
65
  };
@@ -63,4 +67,4 @@ function getUpdateNextVaultConfigTx(gasBudget, packageId, managerCap, registry,
63
67
  });
64
68
  });
65
69
  }
66
- exports.getUpdateNextVaultConfigTx = getUpdateNextVaultConfigTx;
70
+ exports.getAddPortfolioVaultAuthorizedUserTx = getAddPortfolioVaultAuthorizedUserTx;
@@ -0,0 +1 @@
1
+ export declare function getCloseAuctionTx(gasBudget: number, packageId: string, managerCap: string, typeArguments: string[], registry: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,20 +37,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getCloseAuctionTx = void 0;
40
- function getCloseAuctionTx(gasBudget, packageId, managerCap, typeArgument, registry, index, time) {
40
+ function getCloseAuctionTx(gasBudget, packageId, managerCap, typeArguments, registry, index, priceOracle, timeOracle) {
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
- module: 'covered_call',
46
+ module: 'portfolio',
47
47
  function: 'close_auction',
48
- typeArguments: [typeArgument],
48
+ typeArguments: typeArguments,
49
49
  arguments: [
50
50
  managerCap,
51
51
  registry,
52
52
  index,
53
- time,
53
+ priceOracle,
54
+ timeOracle,
54
55
  ],
55
56
  gasBudget: gasBudget,
56
57
  };
@@ -0,0 +1 @@
1
+ export declare function getCloseVaultTx(gasBudget: number, packageId: string, managerCap: string, typeArguments: string[], registry: string, index: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,15 +37,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getCloseVaultTx = void 0;
40
- function getCloseVaultTx(gasBudget, packageId, managerCap, typeArgument, registry, index) {
40
+ function getCloseVaultTx(gasBudget, packageId, managerCap, typeArguments, registry, index) {
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
- module: 'covered_call',
46
+ module: 'portfolio',
47
47
  function: 'close_vault',
48
- typeArguments: [typeArgument],
48
+ typeArguments: typeArguments,
49
49
  arguments: [
50
50
  managerCap,
51
51
  registry,
@@ -0,0 +1 @@
1
+ export declare function getDeliveryTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, priceOracle: string, timeOracle: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,19 +37,20 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getDeliveryTx = void 0;
40
- function getDeliveryTx(gasBudget, packageId, managerCap, registry, typeArgument, index, timeOracle) {
40
+ function getDeliveryTx(gasBudget, packageId, managerCap, registry, typeArguments, index, priceOracle, timeOracle) {
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
- module: 'covered_call',
46
+ module: 'portfolio',
47
47
  function: 'delivery',
48
- typeArguments: [typeArgument],
48
+ typeArguments: typeArguments,
49
49
  arguments: [
50
50
  managerCap,
51
51
  registry,
52
52
  index,
53
+ priceOracle,
53
54
  timeOracle,
54
55
  ],
55
56
  gasBudget: gasBudget,
@@ -0,0 +1,15 @@
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>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,15 +37,29 @@ 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
- function getEvolutionTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
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
+ */
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;
43
57
  return __generator(this, function (_a) {
44
58
  tx = {
45
59
  packageObjectId: packageId,
46
- module: 'covered_call',
60
+ module: 'portfolio',
47
61
  function: 'evolution',
48
- typeArguments: [typeArgument],
62
+ typeArguments: typeArguments,
49
63
  arguments: [
50
64
  managerCap,
51
65
  registry,
@@ -0,0 +1,8 @@
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>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,18 +37,25 @@ 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, user) {
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) {
44
51
  tx = {
45
52
  packageObjectId: packageId,
46
- module: 'covered_call',
53
+ module: 'portfolio',
47
54
  function: 'new_manager',
48
55
  typeArguments: [],
49
56
  arguments: [
50
57
  managerCap,
51
- user,
58
+ addresses,
52
59
  ],
53
60
  gasBudget: gasBudget,
54
61
  };
@@ -0,0 +1,38 @@
1
+ /**
2
+ manager_cap: &ManagerCap,
3
+ registry: &mut Registry,
4
+ time_oracle: &Time,
5
+ option_type: u64,
6
+ period: u8,
7
+ activation_ts_ms: u64,
8
+ expiration_ts_ms: u64,
9
+ d_token_decimal: u64,
10
+ b_token_decimal: u64,
11
+ o_token_decimal: u64,
12
+ capacity: u64,
13
+ strike_pct: vector<u64>,
14
+ weight: vector<u64>,
15
+ is_buyer: vector<bool>,
16
+ strike_increment: u64,
17
+ lot_size: u64,
18
+ decay_speed: u64,
19
+ initial_price: u64,
20
+ final_price: u64,
21
+ auction_duration_in_ms: u64,
22
+ leverage: u64,
23
+ whitelist: vector<address>,
24
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
25
+ */
26
+ export declare function getNewPortfolioVaultTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], managerCap: string, timeOracle: string, optionType: string, // u64
27
+ period: string, // u8
28
+ activationTsMs: string, // u64
29
+ expirationTsMs: string, // u64
30
+ dTokenDecimal: string, // u64
31
+ bTokenDecimal: string, // u64
32
+ oTokenDecimal: string, // u64
33
+ capacity: string, // u64
34
+ strikePct: string[], // vector<u64>
35
+ weight: string[], // vector<u64>
36
+ isBuyer: boolean[], // vector<bool>
37
+ strikeIncrement: string, // u64
38
+ lotSize: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -36,28 +36,70 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getNewCoveredCallVaultTx = void 0;
40
- function getNewCoveredCallVaultTx(gasBudget, packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
39
+ exports.getNewPortfolioVaultTx = void 0;
40
+ /**
41
+ manager_cap: &ManagerCap,
42
+ registry: &mut Registry,
43
+ time_oracle: &Time,
44
+ option_type: u64,
45
+ period: u8,
46
+ activation_ts_ms: u64,
47
+ expiration_ts_ms: u64,
48
+ d_token_decimal: u64,
49
+ b_token_decimal: u64,
50
+ o_token_decimal: u64,
51
+ capacity: u64,
52
+ strike_pct: vector<u64>,
53
+ weight: vector<u64>,
54
+ is_buyer: vector<bool>,
55
+ strike_increment: u64,
56
+ lot_size: u64,
57
+ decay_speed: u64,
58
+ initial_price: u64,
59
+ final_price: u64,
60
+ auction_duration_in_ms: u64,
61
+ leverage: u64,
62
+ whitelist: vector<address>,
63
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
64
+ */
65
+ function getNewPortfolioVaultTx(gasBudget, packageId, registry, typeArguments, managerCap, timeOracle, optionType, // u64
66
+ period, // u8
67
+ activationTsMs, // u64
68
+ expirationTsMs, // u64
69
+ dTokenDecimal, // u64
70
+ bTokenDecimal, // u64
71
+ oTokenDecimal, // u64
72
+ capacity, // u64
73
+ strikePct, // vector<u64>
74
+ weight, // vector<u64>
75
+ isBuyer, // vector<bool>
76
+ strikeIncrement, // u64
77
+ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
41
78
  return __awaiter(this, void 0, void 0, function () {
42
79
  var tx;
43
80
  return __generator(this, function (_a) {
44
81
  tx = {
45
82
  packageObjectId: packageId,
46
- module: 'covered_call',
47
- function: 'new_covered_call_vault',
48
- typeArguments: [typeArgument],
83
+ module: 'portfolio',
84
+ function: 'new_portfolio_vault',
85
+ typeArguments: typeArguments,
49
86
  arguments: [
50
87
  managerCap,
51
88
  registry,
52
89
  timeOracle,
90
+ optionType,
53
91
  period,
54
92
  activationTsMs,
55
93
  expirationTsMs,
56
- tokenDecimal,
57
- shareDecimal,
94
+ dTokenDecimal,
95
+ bTokenDecimal,
96
+ oTokenDecimal,
58
97
  capacity,
59
- strikeOtmPct,
98
+ strikePct,
99
+ weight,
100
+ isBuyer,
60
101
  strikeIncrement,
102
+ lotSize,
61
103
  decaySpeed,
62
104
  initialPrice,
63
105
  finalPrice,
@@ -71,7 +113,4 @@ function getNewCoveredCallVaultTx(gasBudget, packageId, registry, typeArgument,
71
113
  });
72
114
  });
73
115
  }
74
- exports.getNewCoveredCallVaultTx = getNewCoveredCallVaultTx;
75
- /*
76
- sui client call --package 0x1543511bdce9ea3c401c4939126cea518adee965 --module covered_call --function new_covered_call_vault --type-args 0x2::sui::SUI --args 0x8517b2dbaae56eeb84352e4869b289459c68965b 0xb02452d0bbef3cbdc7840ea5bad27bcdd4031675 123 leoAsset 456 --gas-budget 100000
77
- */
116
+ exports.getNewPortfolioVaultTx = getNewPortfolioVaultTx;
@@ -0,0 +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
+ */
8
+ export declare function getRemoveAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, address: string): Promise<any>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -36,20 +36,26 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getRemoveCoveredCallVaultAuthorizedUserTx = void 0;
40
- function getRemoveCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArgument, index, address) {
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
+ */
47
+ function getRemoveAuthorizedUserTx(gasBudget, packageId, managerCap, registry, address) {
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
- module: 'covered_call',
47
- function: 'remove_covered_call_vault_authorized_user',
48
- typeArguments: [typeArgument],
53
+ module: 'portfolio',
54
+ function: 'remove_authorized_user',
55
+ typeArguments: [],
49
56
  arguments: [
50
57
  managerCap,
51
58
  registry,
52
- index,
53
59
  address,
54
60
  ],
55
61
  gasBudget: gasBudget,
@@ -58,4 +64,4 @@ function getRemoveCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, manager
58
64
  });
59
65
  });
60
66
  }
61
- exports.getRemoveCoveredCallVaultAuthorizedUserTx = getRemoveCoveredCallVaultAuthorizedUserTx;
67
+ exports.getRemoveAuthorizedUserTx = getRemoveAuthorizedUserTx;
@@ -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>;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -37,13 +37,18 @@ 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;
43
48
  return __generator(this, function (_a) {
44
49
  tx = {
45
50
  packageObjectId: packageId,
46
- module: 'covered_call',
51
+ module: 'portfolio',
47
52
  function: 'remove_manager',
48
53
  typeArguments: [],
49
54
  arguments: [
@@ -0,0 +1,10 @@
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
+ )
8
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
9
+ */
10
+ export declare function getRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.getRemovePortfolioVaultAuthorizedUserTx = void 0;
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
+ )
47
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
48
+ */
49
+ function getRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
50
+ return __awaiter(this, void 0, void 0, function () {
51
+ var tx;
52
+ return __generator(this, function (_a) {
53
+ tx = {
54
+ packageObjectId: packageId,
55
+ module: 'portfolio',
56
+ function: 'remove_portfolio_vault_authorized_user',
57
+ typeArguments: typeArguments,
58
+ arguments: [
59
+ managerCap,
60
+ registry,
61
+ index,
62
+ address,
63
+ ],
64
+ gasBudget: gasBudget,
65
+ };
66
+ return [2 /*return*/, tx];
67
+ });
68
+ });
69
+ }
70
+ exports.getRemovePortfolioVaultAuthorizedUserTx = getRemovePortfolioVaultAuthorizedUserTx;
@@ -0,0 +1 @@
1
+ export declare function getUpdateCapacityTx(gasBudget: number, packageId: string, managerCap: string, typeArguments: string[], registry: string, index: string, capacity: string): Promise<any>;