@typus/typus-sdk 0.6.2 → 0.6.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 (149) hide show
  1. package/lib/config.json +23 -0
  2. package/lib/constants.d.ts +9 -15
  3. package/lib/constants.js +14 -16
  4. package/lib/test/eventListener.js +25 -23
  5. package/lib/test/getBidData.js +1 -1
  6. package/lib/test/getMakersShares.js +1 -1
  7. package/lib/test/getUsersShares.js +2 -2
  8. package/lib/test/getVaultData.js +1 -1
  9. package/lib/test/getWhiteListFromRegistry.js +1 -1
  10. package/lib/test/testClaim.js +1 -1
  11. package/lib/test/testCrypto.js +1 -1
  12. package/lib/test/testDeposit.js +1 -1
  13. package/lib/test/testMint.js +2 -2
  14. package/lib/test/testNewAuction.js +1 -1
  15. package/lib/test/testNewVault.js +1 -1
  16. package/lib/test/testOracle.js +1 -1
  17. package/lib/test/testSettle.js +1 -1
  18. package/lib/test/testSubscribeEvent.js +1 -1
  19. package/lib/test/testUnsubscribe.js +1 -1
  20. package/lib/test/testWithdraw.js +1 -1
  21. package/lib/utils/auction/getBid.js +1 -1
  22. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +1 -1
  23. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +1 -1
  24. package/lib/utils/authorized/getAuthorizedDeliveryTx.js +1 -1
  25. package/lib/utils/authorized/getAuthorizedEvolutionTx.js +1 -1
  26. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +1 -1
  27. package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +1 -1
  28. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +1 -1
  29. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +1 -1
  30. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +1 -1
  31. package/lib/utils/authorized/getAuthorizedSettleTx.js +1 -1
  32. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +1 -1
  33. package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.js +1 -1
  34. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +1 -1
  35. package/lib/utils/coveredCall/createPriceOracle.js +1 -1
  36. package/lib/utils/coveredCall/createTimeOracle.js +1 -1
  37. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +1 -1
  38. package/lib/utils/coveredCall/getClaimAllTx.js +1 -1
  39. package/lib/utils/coveredCall/getClaimTx.js +1 -1
  40. package/lib/utils/coveredCall/getCloseAuctionTx.js +1 -1
  41. package/lib/utils/coveredCall/getCloseVaultTx.js +1 -1
  42. package/lib/utils/coveredCall/getDeliveryTx.js +1 -1
  43. package/lib/utils/coveredCall/getDepositTx.js +1 -1
  44. package/lib/utils/coveredCall/getEvolutionTx.js +1 -1
  45. package/lib/utils/coveredCall/getLastEvolutionTx.js +1 -1
  46. package/lib/utils/coveredCall/getMakerClaimAllTx.js +1 -1
  47. package/lib/utils/coveredCall/getMakerClaimTx.js +1 -1
  48. package/lib/utils/coveredCall/getNewAuctionTx.js +1 -1
  49. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +1 -1
  50. package/lib/utils/coveredCall/getNewBidTx.js +1 -1
  51. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +1 -1
  52. package/lib/utils/coveredCall/getNewManagerTx.js +1 -1
  53. package/lib/utils/coveredCall/getRefundTx.js +1 -1
  54. package/lib/utils/coveredCall/getRemoveBidTx.js +1 -1
  55. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +1 -1
  56. package/lib/utils/coveredCall/getRemoveManagerTx.js +1 -1
  57. package/lib/utils/coveredCall/getRollOverTx.js +1 -1
  58. package/lib/utils/coveredCall/getSettleTx.js +1 -1
  59. package/lib/utils/coveredCall/getSettleWithRollOverTx.js +1 -1
  60. package/lib/utils/coveredCall/getSubscribeTx.js +1 -1
  61. package/lib/utils/coveredCall/getUnsubscribeTx.js +1 -1
  62. package/lib/utils/coveredCall/getUpdateCapacityTx.js +1 -1
  63. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +1 -1
  64. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +1 -1
  65. package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +1 -1
  66. package/lib/utils/coveredCall/getWithdrawTx.js +1 -1
  67. package/lib/utils/fetchData.d.ts +1 -0
  68. package/lib/utils/fetchData.js +2 -3
  69. package/lib/utils/fetchPortfolioData.d.ts +93 -0
  70. package/lib/utils/fetchPortfolioData.js +205 -0
  71. package/lib/utils/getCreateTokenRegistryTx.js +1 -1
  72. package/lib/utils/getMakersShares.js +1 -1
  73. package/lib/utils/getMintTx.js +1 -1
  74. package/lib/utils/getNewOracleTx.js +1 -1
  75. package/lib/utils/getNewTimeOracleTx.js +1 -1
  76. package/lib/utils/getTypeArgumentFromToken.js +1 -1
  77. package/lib/utils/getUpdateOracleTx.js +1 -1
  78. package/lib/utils/getUpdateTimeOracleTx.js +1 -1
  79. package/lib/utils/getUsersShares.js +1 -1
  80. package/lib/utils/getVaultData.d.ts +1 -0
  81. package/lib/utils/getVaultData.js +21 -3
  82. package/lib/utils/getVaultIndexInRegistry.js +1 -1
  83. package/lib/utils/getWhiteListFromRegistry.js +1 -1
  84. package/lib/utils/loadUsersDepositData.js +31 -28
  85. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +4 -0
  86. package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +63 -0
  87. package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.d.ts +1 -0
  88. package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.js +61 -0
  89. package/lib/utils/portfolio/authorized/getAuthorizedEvolutionTx.d.ts +1 -0
  90. package/lib/utils/portfolio/authorized/getAuthorizedEvolutionTx.js +63 -0
  91. package/lib/utils/portfolio/authorized/getAuthorizedLastEvolutionTx.d.ts +1 -0
  92. package/lib/utils/portfolio/authorized/getAuthorizedLastEvolutionTx.js +61 -0
  93. package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +37 -0
  94. package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js +114 -0
  95. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +4 -0
  96. package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +63 -0
  97. package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -0
  98. package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.js +60 -0
  99. package/lib/utils/portfolio/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +4 -0
  100. package/lib/utils/portfolio/authorized/getAuthorizedUpdateNextVaultConfigTx.js +70 -0
  101. package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +1 -0
  102. package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.js +64 -0
  103. package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +1 -0
  104. package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.js +60 -0
  105. package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +4 -0
  106. package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js +64 -0
  107. package/lib/utils/portfolio/manager/getCloseAuctionTx.d.ts +1 -0
  108. package/lib/utils/portfolio/manager/getCloseAuctionTx.js +62 -0
  109. package/lib/utils/portfolio/manager/getCloseVaultTx.d.ts +1 -0
  110. package/lib/utils/portfolio/manager/getCloseVaultTx.js +60 -0
  111. package/lib/utils/portfolio/manager/getDeliveryTx.d.ts +1 -0
  112. package/lib/utils/portfolio/manager/getDeliveryTx.js +62 -0
  113. package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +1 -0
  114. package/lib/utils/portfolio/manager/getEvolutionTx.js +64 -0
  115. package/lib/utils/portfolio/manager/getLastEvolutionTx.d.ts +1 -0
  116. package/lib/utils/portfolio/manager/getLastEvolutionTx.js +62 -0
  117. package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +1 -0
  118. package/lib/utils/portfolio/manager/getNewManagerTx.js +59 -0
  119. package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +38 -0
  120. package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.js +116 -0
  121. package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +1 -0
  122. package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.js +60 -0
  123. package/lib/utils/portfolio/manager/getRemoveManagerTx.d.ts +1 -0
  124. package/lib/utils/portfolio/manager/getRemoveManagerTx.js +58 -0
  125. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +4 -0
  126. package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +64 -0
  127. package/lib/utils/portfolio/manager/getUpdateCapacityTx.d.ts +1 -0
  128. package/lib/utils/portfolio/manager/getUpdateCapacityTx.js +61 -0
  129. package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.d.ts +4 -0
  130. package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.js +71 -0
  131. package/lib/utils/portfolio/manager/getUpdateVaultConfigTx.d.ts +1 -0
  132. package/lib/utils/portfolio/manager/getUpdateVaultConfigTx.js +65 -0
  133. package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +1 -0
  134. package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +59 -0
  135. package/lib/utils/portfolio/user/getClaimTx.d.ts +1 -0
  136. package/lib/utils/portfolio/user/getClaimTx.js +59 -0
  137. package/lib/utils/portfolio/user/getCompoundPremiumTx.d.ts +1 -0
  138. package/lib/utils/portfolio/user/getCompoundPremiumTx.js +60 -0
  139. package/lib/utils/portfolio/user/getDepositTx.d.ts +1 -0
  140. package/lib/utils/portfolio/user/getDepositTx.js +61 -0
  141. package/lib/utils/portfolio/user/getHarvestTx.d.ts +1 -0
  142. package/lib/utils/portfolio/user/getHarvestTx.js +59 -0
  143. package/lib/utils/portfolio/user/getNewBidTx.d.ts +1 -0
  144. package/lib/utils/portfolio/user/getNewBidTx.js +63 -0
  145. package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +1 -0
  146. package/lib/utils/portfolio/user/getUnsubscribeTx.js +60 -0
  147. package/lib/utils/portfolio/user/getWithdrawTx.d.ts +1 -0
  148. package/lib/utils/portfolio/user/getWithdrawTx.js +60 -0
  149. package/package.json +2 -2
@@ -0,0 +1,64 @@
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
+ * @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
42
+ */
43
+ function getRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
44
+ return __awaiter(this, void 0, void 0, function () {
45
+ var tx;
46
+ return __generator(this, function (_a) {
47
+ tx = {
48
+ packageObjectId: packageId,
49
+ module: 'portfolio',
50
+ function: 'remove_portfolio_vault_authorized_user',
51
+ typeArguments: typeArguments,
52
+ arguments: [
53
+ managerCap,
54
+ registry,
55
+ index,
56
+ address,
57
+ ],
58
+ gasBudget: gasBudget,
59
+ };
60
+ return [2 /*return*/, tx];
61
+ });
62
+ });
63
+ }
64
+ 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>;
@@ -0,0 +1,61 @@
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.getUpdateCapacityTx = void 0;
40
+ function getUpdateCapacityTx(gasBudget, packageId, managerCap, typeArguments, registry, index, capacity) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'update_capacity',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ managerCap,
51
+ registry,
52
+ index,
53
+ capacity
54
+ ],
55
+ gasBudget: gasBudget,
56
+ };
57
+ return [2 /*return*/, tx];
58
+ });
59
+ });
60
+ }
61
+ exports.getUpdateCapacityTx = getUpdateCapacityTx;
@@ -0,0 +1,4 @@
1
+ export declare function getUpdateNextVaultConfigTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, strikeOtmPct: string[], // vector<u64>
2
+ weight: string[], // vector<u64>
3
+ isBuyer: string[], // vector<bool>
4
+ strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
@@ -0,0 +1,71 @@
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.getUpdateNextVaultConfigTx = void 0;
40
+ function getUpdateNextVaultConfigTx(gasBudget, packageId, managerCap, registry, typeArguments, index, strikeOtmPct, // vector<u64>
41
+ weight, // vector<u64>
42
+ isBuyer, // vector<bool>
43
+ strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
44
+ return __awaiter(this, void 0, void 0, function () {
45
+ var tx;
46
+ return __generator(this, function (_a) {
47
+ tx = {
48
+ packageObjectId: packageId,
49
+ module: 'portfolio',
50
+ function: 'update_next_vault_config',
51
+ typeArguments: typeArguments,
52
+ arguments: [
53
+ managerCap,
54
+ registry,
55
+ index,
56
+ strikeOtmPct,
57
+ weight,
58
+ isBuyer,
59
+ strikeIncrement,
60
+ decaySpeed,
61
+ initialPrice,
62
+ finalPrice,
63
+ auctionDurationInMs,
64
+ ],
65
+ gasBudget: gasBudget,
66
+ };
67
+ return [2 /*return*/, tx];
68
+ });
69
+ });
70
+ }
71
+ exports.getUpdateNextVaultConfigTx = getUpdateNextVaultConfigTx;
@@ -0,0 +1 @@
1
+ export declare function getUpdateVaultConfigTx(gasBudget: number, packageId: string, managerCap: string, typeArguments: string[], registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
@@ -0,0 +1,65 @@
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.getUpdateVaultConfigTx = void 0;
40
+ function getUpdateVaultConfigTx(gasBudget, packageId, managerCap, typeArguments, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'update_vault_config',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ managerCap,
51
+ registry,
52
+ index,
53
+ strikeIncrement,
54
+ decaySpeed,
55
+ initialPrice,
56
+ finalPrice,
57
+ auctionDurationInMs,
58
+ ],
59
+ gasBudget: gasBudget,
60
+ };
61
+ return [2 /*return*/, tx];
62
+ });
63
+ });
64
+ }
65
+ exports.getUpdateVaultConfigTx = getUpdateVaultConfigTx;
@@ -0,0 +1 @@
1
+ export declare function getHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[]): Promise<any>;
@@ -0,0 +1,59 @@
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.getHarvestTx = void 0;
40
+ function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'claim_and_harvest',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ registry,
51
+ index,
52
+ ],
53
+ gasBudget: gasBudget,
54
+ };
55
+ return [2 /*return*/, tx];
56
+ });
57
+ });
58
+ }
59
+ exports.getHarvestTx = getHarvestTx;
@@ -0,0 +1 @@
1
+ export declare function getClaimTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[]): Promise<any>;
@@ -0,0 +1,59 @@
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.getClaimTx = void 0;
40
+ function getClaimTx(gasBudget, packageId, registry, typeArguments, index) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'claim',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ registry,
51
+ index,
52
+ ],
53
+ gasBudget: gasBudget,
54
+ };
55
+ return [2 /*return*/, tx];
56
+ });
57
+ });
58
+ }
59
+ exports.getClaimTx = getClaimTx;
@@ -0,0 +1 @@
1
+ export declare function getCompoundPremiumTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string): Promise<any>;
@@ -0,0 +1,60 @@
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.getCompoundPremiumTx = void 0;
40
+ /// typeArguments: <TOKEN, O_TOKEN>
41
+ function getCompoundPremiumTx(gasBudget, packageId, registry, typeArguments, index) {
42
+ return __awaiter(this, void 0, void 0, function () {
43
+ var tx;
44
+ return __generator(this, function (_a) {
45
+ tx = {
46
+ packageObjectId: packageId,
47
+ module: 'portfolio',
48
+ function: 'compound_premium',
49
+ typeArguments: typeArguments,
50
+ arguments: [
51
+ registry,
52
+ index,
53
+ ],
54
+ gasBudget: gasBudget,
55
+ };
56
+ return [2 /*return*/, tx];
57
+ });
58
+ });
59
+ }
60
+ exports.getCompoundPremiumTx = getCompoundPremiumTx;
@@ -0,0 +1 @@
1
+ export declare function getDepositTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], vaultIndex: string, coins: string[], amount: string): Promise<any>;
@@ -0,0 +1,61 @@
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.getDepositTx = void 0;
40
+ function getDepositTx(gasBudget, packageId, registry, typeArguments, vaultIndex, coins, amount) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'deposit',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ registry,
51
+ vaultIndex,
52
+ coins,
53
+ amount,
54
+ ],
55
+ gasBudget: gasBudget,
56
+ };
57
+ return [2 /*return*/, tx];
58
+ });
59
+ });
60
+ }
61
+ exports.getDepositTx = getDepositTx;
@@ -0,0 +1 @@
1
+ export declare function getHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[]): Promise<any>;
@@ -0,0 +1,59 @@
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.getHarvestTx = void 0;
40
+ function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
41
+ return __awaiter(this, void 0, void 0, function () {
42
+ var tx;
43
+ return __generator(this, function (_a) {
44
+ tx = {
45
+ packageObjectId: packageId,
46
+ module: 'portfolio',
47
+ function: 'harvest',
48
+ typeArguments: typeArguments,
49
+ arguments: [
50
+ registry,
51
+ index,
52
+ ],
53
+ gasBudget: gasBudget,
54
+ };
55
+ return [2 /*return*/, tx];
56
+ });
57
+ });
58
+ }
59
+ exports.getHarvestTx = getHarvestTx;
@@ -0,0 +1 @@
1
+ export declare function getNewBidTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string[], priceOracle: string, timeOracle: string, coins: string[], size: string): Promise<any>;