@typus/typus-sdk 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/lib/scripts/sui.js +4 -4
  2. package/lib/test/testClaim.js +4 -3
  3. package/lib/test/testDeposit.js +3 -2
  4. package/lib/test/testDepositV2.js +4 -2
  5. package/lib/test/testMint.js +3 -2
  6. package/lib/test/testNewAuction.js +3 -2
  7. package/lib/test/testNewVault.js +3 -2
  8. package/lib/test/testOracle.js +4 -3
  9. package/lib/test/testSettle.js +10 -9
  10. package/lib/test/testUnsubscribe.js +3 -2
  11. package/lib/test/testWithdraw.js +3 -2
  12. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +1 -1
  13. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +3 -7
  14. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
  15. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +3 -7
  16. package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +1 -1
  17. package/lib/utils/authorized/getAuthorizedDeliveryTx.js +3 -7
  18. package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +1 -1
  19. package/lib/utils/authorized/getAuthorizedEvolutionTx.js +3 -10
  20. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +1 -1
  21. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +3 -9
  22. package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +1 -1
  23. package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +3 -8
  24. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +1 -1
  25. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +3 -4
  26. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +1 -1
  27. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +3 -7
  28. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
  29. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +3 -7
  30. package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +1 -1
  31. package/lib/utils/authorized/getAuthorizedSettleTx.js +3 -8
  32. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -1
  33. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +3 -7
  34. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +1 -1
  35. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +2 -2
  36. package/lib/utils/coveredCall/createPriceOracle.js +3 -2
  37. package/lib/utils/coveredCall/createTimeOracle.js +3 -2
  38. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
  39. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +2 -2
  40. package/lib/utils/coveredCall/getClaimAllTx.d.ts +1 -1
  41. package/lib/utils/coveredCall/getClaimAllTx.js +2 -2
  42. package/lib/utils/coveredCall/getClaimTx.d.ts +1 -1
  43. package/lib/utils/coveredCall/getClaimTx.js +2 -2
  44. package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +1 -1
  45. package/lib/utils/coveredCall/getCloseAuctionTx.js +2 -2
  46. package/lib/utils/coveredCall/getCloseVaultTx.d.ts +1 -1
  47. package/lib/utils/coveredCall/getCloseVaultTx.js +2 -2
  48. package/lib/utils/coveredCall/getDeliveryTx.d.ts +1 -1
  49. package/lib/utils/coveredCall/getDeliveryTx.js +2 -2
  50. package/lib/utils/coveredCall/getDepositTx.d.ts +1 -1
  51. package/lib/utils/coveredCall/getDepositTx.js +2 -2
  52. package/lib/utils/coveredCall/getEvolutionTx.d.ts +1 -1
  53. package/lib/utils/coveredCall/getEvolutionTx.js +2 -2
  54. package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +1 -1
  55. package/lib/utils/coveredCall/getLastEvolutionTx.js +2 -2
  56. package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +1 -1
  57. package/lib/utils/coveredCall/getMakerClaimAllTx.js +2 -2
  58. package/lib/utils/coveredCall/getMakerClaimTx.d.ts +1 -1
  59. package/lib/utils/coveredCall/getMakerClaimTx.js +2 -2
  60. package/lib/utils/coveredCall/getNewAuctionTx.d.ts +1 -1
  61. package/lib/utils/coveredCall/getNewAuctionTx.js +2 -2
  62. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +1 -1
  63. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +2 -2
  64. package/lib/utils/coveredCall/getNewBidTx.d.ts +1 -1
  65. package/lib/utils/coveredCall/getNewBidTx.js +2 -2
  66. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +1 -1
  67. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +2 -2
  68. package/lib/utils/coveredCall/getNewManagerTx.d.ts +1 -1
  69. package/lib/utils/coveredCall/getNewManagerTx.js +2 -2
  70. package/lib/utils/coveredCall/getRefundTx.d.ts +1 -1
  71. package/lib/utils/coveredCall/getRefundTx.js +2 -2
  72. package/lib/utils/coveredCall/getRemoveBidTx.d.ts +1 -1
  73. package/lib/utils/coveredCall/getRemoveBidTx.js +2 -2
  74. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
  75. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +2 -2
  76. package/lib/utils/coveredCall/getRemoveManagerTx.d.ts +1 -1
  77. package/lib/utils/coveredCall/getRemoveManagerTx.js +2 -2
  78. package/lib/utils/coveredCall/getRollOverTx.d.ts +1 -1
  79. package/lib/utils/coveredCall/getRollOverTx.js +2 -2
  80. package/lib/utils/coveredCall/getSettleTx.d.ts +1 -1
  81. package/lib/utils/coveredCall/getSettleTx.js +2 -2
  82. package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +1 -1
  83. package/lib/utils/coveredCall/getSettleWithRollOverTx.js +2 -2
  84. package/lib/utils/coveredCall/getSubscribeTx.d.ts +1 -1
  85. package/lib/utils/coveredCall/getSubscribeTx.js +2 -2
  86. package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +1 -1
  87. package/lib/utils/coveredCall/getUnsubscribeTx.js +2 -2
  88. package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +1 -1
  89. package/lib/utils/coveredCall/getUpdateCapacityTx.js +2 -2
  90. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +1 -1
  91. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +2 -2
  92. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +1 -1
  93. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +2 -2
  94. package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +1 -1
  95. package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +2 -2
  96. package/lib/utils/coveredCall/getWithdrawTx.d.ts +1 -1
  97. package/lib/utils/coveredCall/getWithdrawTx.js +2 -2
  98. package/lib/utils/getCreateTokenRegistryTx.d.ts +1 -1
  99. package/lib/utils/getCreateTokenRegistryTx.js +2 -2
  100. package/lib/utils/getMintTx.d.ts +1 -1
  101. package/lib/utils/getMintTx.js +2 -2
  102. package/lib/utils/getNewOracleTx.d.ts +1 -1
  103. package/lib/utils/getNewOracleTx.js +2 -2
  104. package/lib/utils/getNewTimeOracleTx.d.ts +1 -1
  105. package/lib/utils/getNewTimeOracleTx.js +2 -2
  106. package/lib/utils/getUpdateOracleTx.d.ts +1 -1
  107. package/lib/utils/getUpdateOracleTx.js +2 -2
  108. package/lib/utils/getUpdateTimeOracleTx.d.ts +1 -1
  109. package/lib/utils/getUpdateTimeOracleTx.js +2 -2
  110. package/package.json +2 -2
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAuthorizedSettleTx = void 0;
40
- function getAuthorizedSettleTx(packageId, registry, typeArgument, index, priceOracle, timeOracle) {
40
+ function getAuthorizedSettleTx(gasBudget, packageId, registry, typeArgument, index, priceOracle, timeOracle) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -46,13 +46,8 @@ function getAuthorizedSettleTx(packageId, registry, typeArgument, index, priceOr
46
46
  module: 'covered_call',
47
47
  function: 'authorized_settle',
48
48
  typeArguments: [typeArgument],
49
- arguments: [
50
- registry,
51
- index,
52
- priceOracle,
53
- timeOracle,
54
- ],
55
- gasBudget: 100000,
49
+ arguments: [registry, index, priceOracle, timeOracle],
50
+ gasBudget: gasBudget,
56
51
  };
57
52
  return [2 /*return*/, tx];
58
53
  });
@@ -1 +1 @@
1
- export declare function getAuthorizedUpdateCapacityTx(packageId: string, typeArgument: string, registry: string, index: string, capacity: string): Promise<any>;
1
+ export declare function getAuthorizedUpdateCapacityTx(gasBudget: string, packageId: string, typeArgument: string, registry: string, index: string, capacity: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAuthorizedUpdateCapacityTx = void 0;
40
- function getAuthorizedUpdateCapacityTx(packageId, typeArgument, registry, index, capacity) {
40
+ function getAuthorizedUpdateCapacityTx(gasBudget, packageId, typeArgument, registry, index, capacity) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -46,12 +46,8 @@ function getAuthorizedUpdateCapacityTx(packageId, typeArgument, registry, index,
46
46
  module: 'covered_call',
47
47
  function: 'authorized_update_capacity',
48
48
  typeArguments: [typeArgument],
49
- arguments: [
50
- registry,
51
- index,
52
- capacity
53
- ],
54
- gasBudget: 100000,
49
+ arguments: [registry, index, capacity],
50
+ gasBudget: gasBudget,
55
51
  };
56
52
  return [2 /*return*/, tx];
57
53
  });
@@ -1 +1 @@
1
- export declare function getAuthorizedUpdateVaultConfigTx(packageId: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
1
+ export declare function getAuthorizedUpdateVaultConfigTx(gasBudget: string, packageId: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAuthorizedUpdateVaultConfigTx = void 0;
40
- function getAuthorizedUpdateVaultConfigTx(packageId, typeArgument, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
40
+ function getAuthorizedUpdateVaultConfigTx(gasBudget, packageId, typeArgument, 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) {
@@ -55,7 +55,7 @@ function getAuthorizedUpdateVaultConfigTx(packageId, typeArgument, registry, ind
55
55
  finalPrice,
56
56
  auctionDurationInMs,
57
57
  ],
58
- gasBudget: 100000,
58
+ gasBudget: gasBudget,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -49,13 +49,14 @@ function createPriceOracle(typeArgument) {
49
49
  var _this = this;
50
50
  return __generator(this, function (_a) {
51
51
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
52
- var newOracleTx, moveCallTxn, digest, txn, priceOracle, managerCap, e_1;
52
+ var gasBudget, newOracleTx, moveCallTxn, digest, txn, priceOracle, managerCap, e_1;
53
53
  return __generator(this, function (_a) {
54
54
  switch (_a.label) {
55
55
  case 0:
56
56
  _a.trys.push([0, 4, , 5]);
57
57
  console.log("create new price oracle...");
58
- return [4 /*yield*/, (0, getNewOracleTx_1.getNewOracleTx)(constants_1.ORACLE_PACKAGE, typeArgument, decimal)];
58
+ gasBudget = "100000";
59
+ return [4 /*yield*/, (0, getNewOracleTx_1.getNewOracleTx)(gasBudget, constants_1.ORACLE_PACKAGE, typeArgument, decimal)];
59
60
  case 1:
60
61
  newOracleTx = _a.sent();
61
62
  return [4 /*yield*/, signer.executeMoveCall(newOracleTx)];
@@ -48,13 +48,14 @@ function createTimeOracle() {
48
48
  var _this = this;
49
49
  return __generator(this, function (_a) {
50
50
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
51
- var newTimeOracleTx, moveCallTxn, digest, txn, timeOracle, managerCap, e_1;
51
+ var gasBudget, newTimeOracleTx, moveCallTxn, digest, txn, timeOracle, managerCap, e_1;
52
52
  return __generator(this, function (_a) {
53
53
  switch (_a.label) {
54
54
  case 0:
55
55
  _a.trys.push([0, 4, , 5]);
56
56
  console.log("create new time oracle...");
57
- return [4 /*yield*/, (0, getNewTimeOracleTx_1.getNewTimeOracleTx)(constants_1.ORACLE_PACKAGE)];
57
+ gasBudget = "100000";
58
+ return [4 /*yield*/, (0, getNewTimeOracleTx_1.getNewTimeOracleTx)(gasBudget, constants_1.ORACLE_PACKAGE)];
58
59
  case 1:
59
60
  newTimeOracleTx = _a.sent();
60
61
  return [4 /*yield*/, signer.executeMoveCall(newTimeOracleTx)];
@@ -1 +1 @@
1
- export declare function getAddCoveredCallVaultAuthorizedUserTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
1
+ export declare function getAddCoveredCallVaultAuthorizedUserTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAddCoveredCallVaultAuthorizedUserTx = void 0;
40
- function getAddCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry, typeArgument, index, address) {
40
+ function getAddCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArgument, index, address) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getAddCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry,
52
52
  index,
53
53
  address,
54
54
  ],
55
- gasBudget: 100000,
55
+ gasBudget: gasBudget,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -1 +1 @@
1
- export declare function getClaimAllTx(packageId: string, registry: string, typeArgument: string, index: string[]): Promise<any>;
1
+ export declare function getClaimAllTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string[]): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getClaimAllTx = void 0;
40
- function getClaimAllTx(packageId, registry, typeArgument, index) {
40
+ function getClaimAllTx(gasBudget, packageId, registry, typeArgument, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getClaimAllTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getClaimTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
1
+ export declare function getClaimTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ 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
- function getClaimTx(packageId, registry, typeArgument, index) {
40
+ function getClaimTx(gasBudget, packageId, registry, typeArgument, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getClaimTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getCloseAuctionTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, time: string): Promise<any>;
1
+ export declare function getCloseAuctionTx(gasBudget: string, packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, time: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, managerCap, typeArgument, registry, index, time) {
40
+ function getCloseAuctionTx(gasBudget, packageId, managerCap, typeArgument, registry, index, time) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getCloseAuctionTx(packageId, managerCap, typeArgument, registry, index,
52
52
  index,
53
53
  time,
54
54
  ],
55
- gasBudget: 100000,
55
+ gasBudget: gasBudget,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -1 +1 @@
1
- export declare function getCloseVaultTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string): Promise<any>;
1
+ export declare function getCloseVaultTx(gasBudget: string, packageId: string, managerCap: string, typeArgument: string, registry: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, managerCap, typeArgument, registry, index) {
40
+ function getCloseVaultTx(gasBudget, packageId, managerCap, typeArgument, registry, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -51,7 +51,7 @@ function getCloseVaultTx(packageId, managerCap, typeArgument, registry, index) {
51
51
  registry,
52
52
  index,
53
53
  ],
54
- gasBudget: 100000,
54
+ gasBudget: gasBudget,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -1 +1 @@
1
- export declare function getDeliveryTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, timeOracle: string): Promise<any>;
1
+ export declare function getDeliveryTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, timeOracle: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, managerCap, registry, typeArgument, index, timeOracle) {
40
+ function getDeliveryTx(gasBudget, packageId, managerCap, registry, typeArgument, index, timeOracle) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getDeliveryTx(packageId, managerCap, registry, typeArgument, index, tim
52
52
  index,
53
53
  timeOracle,
54
54
  ],
55
- gasBudget: 100000,
55
+ gasBudget: gasBudget,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -1 +1 @@
1
- export declare function getDepositTx(packageId: string, registry: string, typeArgument: string, vaultIndex: string, coin: string, amount: string): Promise<any>;
1
+ export declare function getDepositTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, vaultIndex: string, coin: string, amount: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getDepositTx = void 0;
40
- function getDepositTx(packageId, registry, typeArgument, vaultIndex, coin, amount) {
40
+ function getDepositTx(gasBudget, packageId, registry, typeArgument, vaultIndex, coin, amount) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getDepositTx(packageId, registry, typeArgument, vaultIndex, coin, amoun
52
52
  coin,
53
53
  amount,
54
54
  ],
55
- gasBudget: 100000,
55
+ gasBudget: gasBudget,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -1 +1 @@
1
- export declare function getEvolutionTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string, expirationTsMs: string): Promise<any>;
1
+ export declare function getEvolutionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string, expirationTsMs: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
40
+ function getEvolutionTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -55,7 +55,7 @@ function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, pr
55
55
  activationTsMs,
56
56
  expirationTsMs,
57
57
  ],
58
- gasBudget: 100000,
58
+ gasBudget: gasBudget,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -1 +1 @@
1
- export declare function getEvolutionTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, expirationTsMs: string): Promise<any>;
1
+ export declare function getEvolutionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, expirationTsMs: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, expirationTsMs) {
40
+ function getEvolutionTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, expirationTsMs) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -54,7 +54,7 @@ function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, pr
54
54
  timeOracle,
55
55
  expirationTsMs,
56
56
  ],
57
- gasBudget: 100000,
57
+ gasBudget: gasBudget,
58
58
  };
59
59
  return [2 /*return*/, tx];
60
60
  });
@@ -1 +1 @@
1
- export declare function getMakerClaimAllTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
1
+ export declare function getMakerClaimAllTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getMakerClaimAllTx = void 0;
40
- function getMakerClaimAllTx(packageId, registry, typeArgument, index) {
40
+ function getMakerClaimAllTx(gasBudget, packageId, registry, typeArgument, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getMakerClaimAllTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getMakerClaimTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
1
+ export declare function getMakerClaimTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getMakerClaimTx = void 0;
40
- function getMakerClaimTx(packageId, registry, typeArgument, index) {
40
+ function getMakerClaimTx(gasBudget, packageId, registry, typeArgument, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getMakerClaimTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getNewAuctionTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
1
+ export declare function getNewAuctionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewAuctionTx = void 0;
40
- function getNewAuctionTx(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
40
+ function getNewAuctionTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -53,7 +53,7 @@ function getNewAuctionTx(packageId, registry, typeArgument, managerCap, index, p
53
53
  priceOracle,
54
54
  timeOracle,
55
55
  ],
56
- gasBudget: 100000,
56
+ gasBudget: gasBudget,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -1 +1 @@
1
- export declare function getNewAuctionWithNextCoveredCallVaultTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: number, priceOracle: string, timeOracle: string, activationTsMs: number, expirationTsMs: number): Promise<any>;
1
+ export declare function getNewAuctionWithNextCoveredCallVaultTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: number, priceOracle: string, timeOracle: string, activationTsMs: number, expirationTsMs: number): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewAuctionWithNextCoveredCallVaultTx = void 0;
40
- function getNewAuctionWithNextCoveredCallVaultTx(packageId, managerCap, registry, typeArgument, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
40
+ function getNewAuctionWithNextCoveredCallVaultTx(gasBudget, packageId, managerCap, registry, typeArgument, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -55,7 +55,7 @@ function getNewAuctionWithNextCoveredCallVaultTx(packageId, managerCap, registry
55
55
  activationTsMs,
56
56
  expirationTsMs,
57
57
  ],
58
- gasBudget: 100000,
58
+ gasBudget: gasBudget,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -1 +1 @@
1
- export declare function getNewBidTx(packageId: string, registry: string, typeArgument: string, vaultIndex: string, size: string, coin: string, time: string): Promise<any>;
1
+ export declare function getNewBidTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, vaultIndex: string, size: string, coin: string, time: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewBidTx = void 0;
40
- function getNewBidTx(packageId, registry, typeArgument, vaultIndex, size, coin, time) {
40
+ function getNewBidTx(gasBudget, packageId, registry, typeArgument, vaultIndex, size, coin, time) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -53,7 +53,7 @@ function getNewBidTx(packageId, registry, typeArgument, vaultIndex, size, coin,
53
53
  coin,
54
54
  size,
55
55
  ],
56
- gasBudget: 100000,
56
+ gasBudget: gasBudget,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -1 +1 @@
1
- export declare function getNewCoveredCallVaultTx(packageId: string, registry: string, typeArgument: string, managerCap: string, timeOracle: string, period: string, activationTsMs: string, expirationTsMs: string, tokenDecimal: string, shareDecimal: string, capacity: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
1
+ export declare function getNewCoveredCallVaultTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, timeOracle: string, period: string, activationTsMs: string, expirationTsMs: string, tokenDecimal: string, shareDecimal: string, capacity: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getNewCoveredCallVaultTx = void 0;
40
- function getNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
40
+ function getNewCoveredCallVaultTx(gasBudget, packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -65,7 +65,7 @@ function getNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap,
65
65
  leverage,
66
66
  whitelist,
67
67
  ],
68
- gasBudget: 100000,
68
+ gasBudget: gasBudget,
69
69
  };
70
70
  return [2 /*return*/, tx];
71
71
  });
@@ -1 +1 @@
1
- export declare function getNewManagerTx(packageId: string, managerCap: string, user: string): Promise<any>;
1
+ export declare function getNewManagerTx(gasBudget: string, packageId: string, managerCap: string, user: string): Promise<any>;
@@ -37,7 +37,7 @@ 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(packageId, managerCap, user) {
40
+ function getNewManagerTx(gasBudget, packageId, managerCap, user) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getNewManagerTx(packageId, managerCap, user) {
50
50
  managerCap,
51
51
  user,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getRefundTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
1
+ export declare function getRefundTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRefundTx = void 0;
40
- function getRefundTx(packageId, registry, typeArgument, index) {
40
+ function getRefundTx(gasBudget, packageId, registry, typeArgument, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -50,7 +50,7 @@ function getRefundTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 100000,
53
+ gasBudget: gasBudget,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -1 +1 @@
1
- export declare function getRemoveBidTx(packageId: string, registry: string, typeArgument: string, index: string, bidIndex: string): Promise<any>;
1
+ export declare function getRemoveBidTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, bidIndex: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRemoveBidTx = void 0;
40
- function getRemoveBidTx(packageId, registry, typeArgument, index, bidIndex) {
40
+ function getRemoveBidTx(gasBudget, packageId, registry, typeArgument, index, bidIndex) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -51,7 +51,7 @@ function getRemoveBidTx(packageId, registry, typeArgument, index, bidIndex) {
51
51
  index,
52
52
  bidIndex,
53
53
  ],
54
- gasBudget: 100000,
54
+ gasBudget: gasBudget,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -1 +1 @@
1
- export declare function getRemoveCoveredCallVaultAuthorizedUserTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
1
+ export declare function getRemoveCoveredCallVaultAuthorizedUserTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRemoveCoveredCallVaultAuthorizedUserTx = void 0;
40
- function getRemoveCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry, typeArgument, index, address) {
40
+ function getRemoveCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArgument, index, address) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -52,7 +52,7 @@ function getRemoveCoveredCallVaultAuthorizedUserTx(packageId, managerCap, regist
52
52
  index,
53
53
  address,
54
54
  ],
55
- gasBudget: 100000,
55
+ gasBudget: gasBudget,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -1 +1 @@
1
- export declare function getRemoveManagerTx(packageId: string, managerCap: string): Promise<any>;
1
+ export declare function getRemoveManagerTx(gasBudget: string, packageId: string, managerCap: string): Promise<any>;
@@ -37,7 +37,7 @@ 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
- function getRemoveManagerTx(packageId, managerCap) {
40
+ function getRemoveManagerTx(gasBudget, packageId, managerCap) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -49,7 +49,7 @@ function getRemoveManagerTx(packageId, managerCap) {
49
49
  arguments: [
50
50
  managerCap,
51
51
  ],
52
- gasBudget: 100000,
52
+ gasBudget: gasBudget,
53
53
  };
54
54
  return [2 /*return*/, tx];
55
55
  });
@@ -1 +1 @@
1
- export declare function getRollOverTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string): Promise<any>;
1
+ export declare function getRollOverTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string): Promise<any>;
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getRollOverTx = void 0;
40
- function getRollOverTx(packageId, registry, typeArgument, managerCap, index) {
40
+ function getRollOverTx(gasBudget, packageId, registry, typeArgument, managerCap, index) {
41
41
  return __awaiter(this, void 0, void 0, function () {
42
42
  var tx;
43
43
  return __generator(this, function (_a) {
@@ -51,7 +51,7 @@ function getRollOverTx(packageId, registry, typeArgument, managerCap, index) {
51
51
  registry,
52
52
  index,
53
53
  ],
54
- gasBudget: 100000,
54
+ gasBudget: gasBudget,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -1 +1 @@
1
- export declare function getSettleTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
1
+ export declare function getSettleTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;