@typus/typus-sdk 0.5.3 → 0.5.4

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 (51) hide show
  1. package/lib/scripts/sui.js +4 -4
  2. package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +1 -1
  3. package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +1 -1
  4. package/lib/utils/authorized/getAuthorizedDeliveryTx.js +1 -1
  5. package/lib/utils/authorized/getAuthorizedEvolutionTx.js +1 -1
  6. package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +1 -1
  7. package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +1 -1
  8. package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +1 -1
  9. package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +1 -1
  10. package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +1 -1
  11. package/lib/utils/authorized/getAuthorizedSettleTx.js +1 -1
  12. package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +1 -1
  13. package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.js +1 -1
  14. package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +1 -1
  15. package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +1 -1
  16. package/lib/utils/coveredCall/getClaimAllTx.js +1 -1
  17. package/lib/utils/coveredCall/getClaimTx.js +1 -1
  18. package/lib/utils/coveredCall/getCloseAuctionTx.js +1 -1
  19. package/lib/utils/coveredCall/getCloseVaultTx.js +1 -1
  20. package/lib/utils/coveredCall/getDeliveryTx.js +1 -1
  21. package/lib/utils/coveredCall/getDepositTx.js +1 -1
  22. package/lib/utils/coveredCall/getEvolutionTx.js +1 -1
  23. package/lib/utils/coveredCall/getLastEvolutionTx.js +1 -1
  24. package/lib/utils/coveredCall/getMakerClaimAllTx.js +1 -1
  25. package/lib/utils/coveredCall/getMakerClaimTx.js +1 -1
  26. package/lib/utils/coveredCall/getNewAuctionTx.js +1 -1
  27. package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +1 -1
  28. package/lib/utils/coveredCall/getNewBidTx.js +1 -1
  29. package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +1 -1
  30. package/lib/utils/coveredCall/getNewManagerTx.js +1 -1
  31. package/lib/utils/coveredCall/getRefundTx.js +1 -1
  32. package/lib/utils/coveredCall/getRemoveBidTx.js +1 -1
  33. package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +1 -1
  34. package/lib/utils/coveredCall/getRemoveManagerTx.js +1 -1
  35. package/lib/utils/coveredCall/getRollOverTx.js +1 -1
  36. package/lib/utils/coveredCall/getSettleTx.js +1 -1
  37. package/lib/utils/coveredCall/getSettleWithRollOverTx.js +1 -1
  38. package/lib/utils/coveredCall/getSubscribeTx.js +1 -1
  39. package/lib/utils/coveredCall/getUnsubscribeTx.js +1 -1
  40. package/lib/utils/coveredCall/getUpdateCapacityTx.js +1 -1
  41. package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +1 -1
  42. package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +1 -1
  43. package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +1 -1
  44. package/lib/utils/coveredCall/getWithdrawTx.js +1 -1
  45. package/lib/utils/getCreateTokenRegistryTx.js +1 -1
  46. package/lib/utils/getMintTx.js +1 -1
  47. package/lib/utils/getNewOracleTx.js +1 -1
  48. package/lib/utils/getNewTimeOracleTx.js +1 -1
  49. package/lib/utils/getUpdateOracleTx.js +1 -1
  50. package/lib/utils/getUpdateTimeOracleTx.js +1 -1
  51. package/package.json +1 -1
@@ -82,7 +82,7 @@ function readJsonFile(filePath) {
82
82
  // console.log("test for transferObject()")
83
83
  // const transferTxn = await signer.transferObject({
84
84
  // objectId: obj1,
85
- // gasBudget: 1000,
85
+ // gasBudget: 100000,
86
86
  // recipient: receiver,
87
87
  // });
88
88
  // console.log('transferTxn', transferTxn);
@@ -100,7 +100,7 @@ function readJsonFile(filePath) {
100
100
  // 'An NFT created by the wallet Command Line Tool',
101
101
  // 'ipfs://bafkreibngqhl3gaa7daob4i2vccziay2jjlp435cf66vhono7nrvww53ty',
102
102
  // ],
103
- // gasBudget: 10000,
103
+ // gasBudget: 100000,
104
104
  // });
105
105
  // console.log('moveCallTxn', moveCallTxn);
106
106
  // })();
@@ -135,7 +135,7 @@ function readJsonFile(filePath) {
135
135
  // );
136
136
  // const publishTxn = await signer.publish({
137
137
  // compiledModules: modulesInBytes,
138
- // gasBudget: 10000,
138
+ // gasBudget: 100000,
139
139
  // });
140
140
  // console.log('publishTxn', publishTxn);
141
141
  // })();
@@ -180,7 +180,7 @@ function readJsonFile(filePath) {
180
180
  // true,
181
181
  // coin
182
182
  // ],
183
- // gasBudget: 1000,
183
+ // gasBudget: 100000,
184
184
  // }
185
185
  // const moveCallTxn = await signer.executeMoveCall(txn);
186
186
  // console.log('moveCallTxn', moveCallTxn);
@@ -51,7 +51,7 @@ function getAuthorizedAddAuthorizedUserTx(packageId, registry, managerCap, addre
51
51
  registry,
52
52
  address,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -51,7 +51,7 @@ function getAuthorizedAddCoveredCallVaultAuthorizedUserTx(packageId, registry, t
51
51
  index,
52
52
  address,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -51,7 +51,7 @@ function getAuthorizedDeliveryTx(packageId, registry, typeArgument, index, timeO
51
51
  index,
52
52
  timeOracle,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -54,7 +54,7 @@ function getAuthorizedEvolutionTx(packageId, registry, typeArgument, index, pric
54
54
  activationTsMs,
55
55
  expirationTsMs,
56
56
  ],
57
- gasBudget: 10000,
57
+ gasBudget: 100000,
58
58
  };
59
59
  return [2 /*return*/, tx];
60
60
  });
@@ -53,7 +53,7 @@ function getAuthorizedLastEvolutionTx(packageId, registry, typeArgument, index,
53
53
  timeOracle,
54
54
  expirationTsMs,
55
55
  ],
56
- gasBudget: 10000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -52,7 +52,7 @@ function getNewAuctionTx(packageId, registry, typeArgument, index, priceOracle,
52
52
  priceOracle,
53
53
  timeOracle,
54
54
  ],
55
- gasBudget: 1000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -65,7 +65,7 @@ function getAuthorizedNewCoveredCallVaultTx(packageId, registry, typeArgument, m
65
65
  leverage,
66
66
  whitelist,
67
67
  ],
68
- gasBudget: 10000,
68
+ gasBudget: 100000,
69
69
  };
70
70
  return [2 /*return*/, tx];
71
71
  });
@@ -51,7 +51,7 @@ function getAuthorizedRemoveAuthorizedUserTx(packageId, registry, managerCap, ad
51
51
  registry,
52
52
  address,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -51,7 +51,7 @@ function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(packageId, registry
51
51
  index,
52
52
  address,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -52,7 +52,7 @@ function getAuthorizedSettleTx(packageId, registry, typeArgument, index, priceOr
52
52
  priceOracle,
53
53
  timeOracle,
54
54
  ],
55
- gasBudget: 10000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -51,7 +51,7 @@ function getAuthorizedUpdateCapacityTx(packageId, typeArgument, registry, index,
51
51
  index,
52
52
  capacity
53
53
  ],
54
- gasBudget: 1000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -56,7 +56,7 @@ function getUpdateNextVaultConfigTx(packageId, registry, typeArgument, index, st
56
56
  finalPrice,
57
57
  auctionDurationInMs,
58
58
  ],
59
- gasBudget: 1000,
59
+ gasBudget: 100000,
60
60
  };
61
61
  return [2 /*return*/, tx];
62
62
  });
@@ -55,7 +55,7 @@ function getAuthorizedUpdateVaultConfigTx(packageId, typeArgument, registry, ind
55
55
  finalPrice,
56
56
  auctionDurationInMs,
57
57
  ],
58
- gasBudget: 1000,
58
+ gasBudget: 100000,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -52,7 +52,7 @@ function getAddCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry,
52
52
  index,
53
53
  address,
54
54
  ],
55
- gasBudget: 10000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -50,7 +50,7 @@ function getClaimAllTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -50,7 +50,7 @@ function getClaimTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -52,7 +52,7 @@ function getCloseAuctionTx(packageId, managerCap, typeArgument, registry, index,
52
52
  index,
53
53
  time,
54
54
  ],
55
- gasBudget: 1000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -51,7 +51,7 @@ function getCloseVaultTx(packageId, managerCap, typeArgument, registry, index) {
51
51
  registry,
52
52
  index,
53
53
  ],
54
- gasBudget: 1000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -52,7 +52,7 @@ function getDeliveryTx(packageId, managerCap, registry, typeArgument, index, tim
52
52
  index,
53
53
  timeOracle,
54
54
  ],
55
- gasBudget: 10000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -52,7 +52,7 @@ function getDepositTx(packageId, registry, typeArgument, vaultIndex, coin, amoun
52
52
  coin,
53
53
  amount,
54
54
  ],
55
- gasBudget: 10000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -55,7 +55,7 @@ function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, pr
55
55
  activationTsMs,
56
56
  expirationTsMs,
57
57
  ],
58
- gasBudget: 10000,
58
+ gasBudget: 100000,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -54,7 +54,7 @@ function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, pr
54
54
  timeOracle,
55
55
  expirationTsMs,
56
56
  ],
57
- gasBudget: 10000,
57
+ gasBudget: 100000,
58
58
  };
59
59
  return [2 /*return*/, tx];
60
60
  });
@@ -50,7 +50,7 @@ function getMakerClaimAllTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -50,7 +50,7 @@ function getMakerClaimTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -53,7 +53,7 @@ function getNewAuctionTx(packageId, registry, typeArgument, managerCap, index, p
53
53
  priceOracle,
54
54
  timeOracle,
55
55
  ],
56
- gasBudget: 1000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -55,7 +55,7 @@ function getNewAuctionWithNextCoveredCallVaultTx(packageId, managerCap, registry
55
55
  activationTsMs,
56
56
  expirationTsMs,
57
57
  ],
58
- gasBudget: 10000,
58
+ gasBudget: 100000,
59
59
  };
60
60
  return [2 /*return*/, tx];
61
61
  });
@@ -53,7 +53,7 @@ function getNewBidTx(packageId, registry, typeArgument, vaultIndex, size, coin,
53
53
  coin,
54
54
  size,
55
55
  ],
56
- gasBudget: 1000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -65,7 +65,7 @@ function getNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap,
65
65
  leverage,
66
66
  whitelist,
67
67
  ],
68
- gasBudget: 10000,
68
+ gasBudget: 100000,
69
69
  };
70
70
  return [2 /*return*/, tx];
71
71
  });
@@ -50,7 +50,7 @@ function getNewManagerTx(packageId, managerCap, user) {
50
50
  managerCap,
51
51
  user,
52
52
  ],
53
- gasBudget: 1000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -50,7 +50,7 @@ function getRefundTx(packageId, registry, typeArgument, index) {
50
50
  registry,
51
51
  index,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -51,7 +51,7 @@ function getRemoveBidTx(packageId, registry, typeArgument, index, bidIndex) {
51
51
  index,
52
52
  bidIndex,
53
53
  ],
54
- gasBudget: 1000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -52,7 +52,7 @@ function getRemoveCoveredCallVaultAuthorizedUserTx(packageId, managerCap, regist
52
52
  index,
53
53
  address,
54
54
  ],
55
- gasBudget: 10000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -49,7 +49,7 @@ function getRemoveManagerTx(packageId, managerCap) {
49
49
  arguments: [
50
50
  managerCap,
51
51
  ],
52
- gasBudget: 1000,
52
+ gasBudget: 100000,
53
53
  };
54
54
  return [2 /*return*/, tx];
55
55
  });
@@ -51,7 +51,7 @@ function getRollOverTx(packageId, registry, typeArgument, managerCap, index) {
51
51
  registry,
52
52
  index,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -53,7 +53,7 @@ function getSettleTx(packageId, registry, typeArgument, managerCap, index, price
53
53
  priceOracle,
54
54
  timeOracle,
55
55
  ],
56
- gasBudget: 10000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -53,7 +53,7 @@ function getSettleWithRollOverTx(packageId, registry, typeArgument, managerCap,
53
53
  priceOracle,
54
54
  timeOracle,
55
55
  ],
56
- gasBudget: 10000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -51,7 +51,7 @@ function getSubscribeTx(packageId, registry, typeArgument, index, share) {
51
51
  index,
52
52
  share,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -51,7 +51,7 @@ function getUnsubscribeTx(packageId, registry, typeArgument, index, share) {
51
51
  index,
52
52
  share,
53
53
  ],
54
- gasBudget: 10000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -52,7 +52,7 @@ function getUpdateCapacityTx(packageId, managerCap, typeArgument, registry, inde
52
52
  index,
53
53
  capacity
54
54
  ],
55
- gasBudget: 1000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -57,7 +57,7 @@ function getUpdateNextVaultConfigTx(packageId, managerCap, registry, typeArgumen
57
57
  finalPrice,
58
58
  auctionDurationInMs,
59
59
  ],
60
- gasBudget: 1000,
60
+ gasBudget: 100000,
61
61
  };
62
62
  return [2 /*return*/, tx];
63
63
  });
@@ -53,7 +53,7 @@ function getUpdatePayoffConfigTx(packageId, registry, typeArgument, managerCap,
53
53
  roi,
54
54
  exposureRatio,
55
55
  ],
56
- gasBudget: 1000,
56
+ gasBudget: 100000,
57
57
  };
58
58
  return [2 /*return*/, tx];
59
59
  });
@@ -56,7 +56,7 @@ function getUpdateVaultConfigTx(packageId, managerCap, typeArgument, registry, i
56
56
  finalPrice,
57
57
  auctionDurationInMs,
58
58
  ],
59
- gasBudget: 1000,
59
+ gasBudget: 100000,
60
60
  };
61
61
  return [2 /*return*/, tx];
62
62
  });
@@ -51,7 +51,7 @@ function getWithdrawTx(packageId, registry, typeArgument, vaultIndex, share) {
51
51
  vaultIndex,
52
52
  share,
53
53
  ],
54
- gasBudget: 1000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
@@ -47,7 +47,7 @@ function getCreateTokenRegistryTx(packageId) {
47
47
  function: 'new',
48
48
  typeArguments: [],
49
49
  arguments: [],
50
- gasBudget: 10000,
50
+ gasBudget: 100000,
51
51
  };
52
52
  return [2 /*return*/, tx];
53
53
  });
@@ -50,7 +50,7 @@ function getMintTx(packageId, registry, moduleName, amount) {
50
50
  registry,
51
51
  amount,
52
52
  ],
53
- gasBudget: 10000,
53
+ gasBudget: 100000,
54
54
  };
55
55
  return [2 /*return*/, tx];
56
56
  });
@@ -47,7 +47,7 @@ function getNewOracleTx(packageId, typeArgument, decimal) {
47
47
  function: 'new_oracle',
48
48
  typeArguments: [typeArgument],
49
49
  arguments: [decimal],
50
- gasBudget: 1000,
50
+ gasBudget: 100000,
51
51
  };
52
52
  return [2 /*return*/, tx];
53
53
  });
@@ -47,7 +47,7 @@ function getNewTimeOracleTx(packageId) {
47
47
  function: 'new_time',
48
48
  typeArguments: [],
49
49
  arguments: [],
50
- gasBudget: 1000,
50
+ gasBudget: 100000,
51
51
  };
52
52
  return [2 /*return*/, tx];
53
53
  });
@@ -52,7 +52,7 @@ function getUpdateOracleTx(packageId, typeArgument, oracle, managerCap, price, u
52
52
  price,
53
53
  unix
54
54
  ],
55
- gasBudget: 1000,
55
+ gasBudget: 100000,
56
56
  };
57
57
  return [2 /*return*/, tx];
58
58
  });
@@ -51,7 +51,7 @@ function getUpdateTimeOracleTx(packageId, oracle, managerCap, ts) {
51
51
  managerCap,
52
52
  ts
53
53
  ],
54
- gasBudget: 1000,
54
+ gasBudget: 100000,
55
55
  };
56
56
  return [2 /*return*/, tx];
57
57
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "0.5.3",
5
+ "version": "0.5.4",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.5.0",
8
8
  "@mysten/sui.js": "^0.26.1",