@typus/typus-sdk 0.6.1 → 0.6.2

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.
@@ -10,9 +10,9 @@ export declare const TIME_ORACLE = "0x9472de591c68ee1a8a9771221c391f86feb2c1bb";
10
10
  export declare const COVERED_CALL_PACKAGE = "0x60923650807ee3ccc53c539920b7b0ccea4b1554";
11
11
  export declare const COVERED_CALL_REGISTRY = "0x46d88d85f2f22d7fffda51127fe48b274aedd2f1";
12
12
  export declare const COVERED_CALL_MANAGER = "0xa47107c76cc3cbb7fdf19d16ac79f8fd9b9f5e4f";
13
- export declare const USER_SHARE_TABLE = "0xb88a461c47ec45198fd7de39cd72b7be3dcaad93";
13
+ export declare const USER_SHARE_TABLE = "0xc216df077ee67f081fdb72a95c9729ec2102587f";
14
14
  export declare const USER_REFUND_TABLE = "0x0bd398f74aa24022595e7c7ae50bd2f258ca07aa";
15
- export declare const MAKER_SHARE_TABLE = "0x9d492e3724f23bad705c8d30ac244ae76006cef1";
15
+ export declare const MAKER_SHARE_TABLE = "0xe80a202dd890d24e64acc345c1b30acbe63a46f3";
16
16
  export declare const DOV_PACKAGE = "0x49e71a735dc6bdf7327e6c663d04a3e7f68bafd0";
17
17
  export declare const TEST_MINT_TOKEN = "0x672612858fcb5c6abf944638253142820c251753";
18
18
  export declare const PRICE_DECIMAL = 8;
package/lib/constants.js CHANGED
@@ -16,9 +16,9 @@ exports.TIME_ORACLE = '0x9472de591c68ee1a8a9771221c391f86feb2c1bb';
16
16
  exports.COVERED_CALL_PACKAGE = "0x60923650807ee3ccc53c539920b7b0ccea4b1554";
17
17
  exports.COVERED_CALL_REGISTRY = "0x46d88d85f2f22d7fffda51127fe48b274aedd2f1";
18
18
  exports.COVERED_CALL_MANAGER = "0xa47107c76cc3cbb7fdf19d16ac79f8fd9b9f5e4f";
19
- exports.USER_SHARE_TABLE = "0xb88a461c47ec45198fd7de39cd72b7be3dcaad93";
19
+ exports.USER_SHARE_TABLE = "0xc216df077ee67f081fdb72a95c9729ec2102587f";
20
20
  exports.USER_REFUND_TABLE = "0x0bd398f74aa24022595e7c7ae50bd2f258ca07aa";
21
- exports.MAKER_SHARE_TABLE = "0x9d492e3724f23bad705c8d30ac244ae76006cef1";
21
+ exports.MAKER_SHARE_TABLE = "0xe80a202dd890d24e64acc345c1b30acbe63a46f3";
22
22
  //publish from typus-dov/typus-dov
23
23
  exports.DOV_PACKAGE = "0x49e71a735dc6bdf7327e6c663d04a3e7f68bafd0";
24
24
  exports.TEST_MINT_TOKEN = "0x672612858fcb5c6abf944638253142820c251753";
@@ -76,7 +76,7 @@ var chatId = process.env.CHAT_ID;
76
76
  ];
77
77
  newAuctionType = constants_1.COVERED_CALL_PACKAGE + "::covered_call::NewAuction";
78
78
  endAuctionType = constants_1.COVERED_CALL_PACKAGE + "::covered_call::Delivery<" + constants_1.TOKEN_PACKAGE + "::eth::ETH>";
79
- renewSec = 10;
79
+ renewSec = 30;
80
80
  // let vault = await getVaultDataFromRegistry(COVERED_CALL_REGISTRY, provider);
81
81
  bidTypes.map(function (bidType) { return __awaiter(void 0, void 0, void 0, function () {
82
82
  return __generator(this, function (_a) {
@@ -320,7 +320,7 @@ function getEndAuctionEventsCranker(type, renewSec, provider) {
320
320
  newBidIds = newBidIds.filter(function (e) {
321
321
  return !bidIds.find(function (tmp) { return tmp.bidFormat == e.bidFormat; });
322
322
  });
323
- console.log("new bid ids after filter:");
323
+ // console.log("new bid ids after filter:")
324
324
  console.log(newBidIds);
325
325
  _loop_2 = function (asset) {
326
326
  var targetBids = newBidIds.filter(function (bidId) {
@@ -44,7 +44,7 @@ var provider = new sui_js_1.JsonRpcProvider(sui_js_1.Network.DEVNET); //for read
44
44
  var usersShares;
45
45
  return __generator(this, function (_a) {
46
46
  switch (_a.label) {
47
- case 0: return [4 /*yield*/, (0, getUsersShares_1.getUsersShares)(constants_1.USER_SHARE_TABLE, constants_1.COVERED_CALL_REGISTRY, provider)];
47
+ case 0: return [4 /*yield*/, (0, getUsersShares_1.getUsersShares)("0xc216df077ee67f081fdb72a95c9729ec2102587f", constants_1.COVERED_CALL_REGISTRY, provider)];
48
48
  case 1:
49
49
  usersShares = _a.sent();
50
50
  console.log(usersShares);
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.6.1",
5
+ "version": "0.6.2",
6
6
  "dependencies": {
7
7
  "@mysten/sui.js": "^0.27.0",
8
8
  "@types/node": "^17.0.0",