@typus/typus-sdk 1.6.19 → 1.6.21

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.
@@ -9,7 +9,7 @@ export declare const tokenType: {
9
9
  [key in TOKEN]: string;
10
10
  };
11
11
  };
12
- export type TOKEN = "SUI" | "CETUS" | "TURBOS" | "NAVX" | "SCA" | "DEEP" | "BLUE" | "TYPUS" | "NS" | "WAL" | "FUD" | "BLUB" | "LIQ" | "HIPPO" | "MFUD" | "MBLUB" | "MLIQ" | "BUCK" | "USDY" | "AUSD" | "USDC" | "wSOL" | "wAPT" | "wBTC" | "wETH" | "wUSDC" | "wUSDT" | "sbETH" | "sbUSDT" | "VSUI" | "HASUI" | "AFSUI" | "SPSUI" | "STSUI" | "INJ" | "JUP" | "SEI" | "sSCA" | "LBTC" | "TEXP" | "USD";
12
+ export type TOKEN = "SUI" | "CETUS" | "TURBOS" | "NAVX" | "SCA" | "DEEP" | "BLUE" | "TYPUS" | "NS" | "WAL" | "FUD" | "BLUB" | "LIQ" | "HIPPO" | "MFUD" | "MBLUB" | "MLIQ" | "BUCK" | "USDY" | "AUSD" | "USDC" | "wSOL" | "wAPT" | "wBTC" | "wETH" | "wUSDC" | "wUSDT" | "sbETH" | "sbUSDT" | "VSUI" | "HASUI" | "AFSUI" | "SPSUI" | "STSUI" | "INJ" | "JUP" | "SEI" | "JPY" | "XAU" | "sSCA" | "LBTC" | "TEXP" | "USD";
13
13
  export declare const oracle: {
14
14
  MAINNET: {
15
15
  [key in TOKEN]?: string;
@@ -259,6 +259,8 @@ exports.tokenType = {
259
259
  NS: "0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178::ns::NS",
260
260
  WAL: "0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::WAL",
261
261
  LBTC: "0x3e8e9423d80e1774a7ca128fccd8bf5f1f7753be658c5e645929037f7c819040::lbtc::LBTC",
262
+ JPY: "",
263
+ XAU: "",
262
264
  },
263
265
  TESTNET: {
264
266
  SUI: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
@@ -302,6 +304,8 @@ exports.tokenType = {
302
304
  NS: "0xac39f86c22c0924d066454873f801b3a338791846ae8c5fd8259a9719b36f2aa::ns::NS",
303
305
  WAL: "",
304
306
  LBTC: "",
307
+ JPY: "0xf6b1411610d6416f5bff08750262169fb6447eaf45750943cb89eb86fbf6542f::jpy::JPY",
308
+ XAU: "0x3ec6cda6b1d7003290004674e82d56530f354b4754f63334cf988a1bcd5535a4::xau::XAU",
305
309
  },
306
310
  };
307
311
  exports.oracle = {
@@ -351,6 +355,8 @@ exports.oracle = {
351
355
  MBLUB: "0x826253a1dde9907e28f465df8b2a19ba5994b4b069abad98658532785940338a",
352
356
  TYPUS: "0x73bb8651018bced7e737557fc9e4a7cf02ae28345b645566d0fd4df2da183048",
353
357
  NS: "0x4481ebc6a26ac72abb9ecbedba60fcba87440f1306c125c1bdf61d1248af4482",
358
+ JPY: "0xe4d5eaa453ffc3ee3a76b885b7a7d97756df5d4624d7d467c5d6da51f286f82b",
359
+ XAU: "0x172101af6fbaab02b2663ed7c502152431fed5d76ac865ac3ccad134c92d91db",
354
360
  },
355
361
  };
356
362
  exports.tokenRegistry = {
@@ -496,6 +496,10 @@ function getMyBids(config, input) {
496
496
  return [4 /*yield*/, provider.devInspectTransactionBlock({ transactionBlock: transaction, sender: constants_1.SENDER })];
497
497
  case 1:
498
498
  results = (_a.sent()).results;
499
+ if (!results) {
500
+ // early return if no results
501
+ return [2 /*return*/, {}];
502
+ }
499
503
  bytes = results[results.length - 1].returnValues[0][0];
500
504
  reader = new bcs_1.BcsReader(new Uint8Array(bytes));
501
505
  result = Array.from(new Map()).reduce(function (map, _a) {
@@ -35,6 +35,8 @@ exports.priceIDs = {
35
35
  NS: "0xbb5ff26e47a3a6cc7ec2fce1db996c2a145300edc5acaabe43bf9ff7c5dd5d32",
36
36
  WAL: "0xeba0732395fae9dec4bae12e52760b35fc1c5671e2da8b449c9af4efe5d54341",
37
37
  LBTC: "0x8f257aab6e7698bb92b15511915e593d6f8eae914452f781874754b03d0c612b",
38
+ JPY: "0xef2c98c804ba503c6a707e38be4dfbb16683775f195b091252bf24693042fd52",
39
+ XAU: "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2",
38
40
  },
39
41
  TESTNET: {
40
42
  // Pyth EVM Beta
@@ -69,6 +71,8 @@ exports.priceIDs = {
69
71
  NS: "0x65aca56071505735c09091deb8733fdeba265bd9723dd4fb326b5ffd6843b3a3",
70
72
  WAL: "0xa6ba0195b5364be116059e401fb71484ed3400d4d9bfbdf46bd11eab4f9b7cea",
71
73
  LBTC: "0x29448db25efe8c72afe3a3c0c0631337408bd3cbc5f09d3dab0754460a965dae",
74
+ JPY: "0x20a938f54b68f1f2ef18ea0328f6dd0747f8ea11486d22b021e83a900be89776",
75
+ XAU: "0x30a19158f5a54c0adf8fb7560627343f22a1bc852b89d56be1accdc5dbf96d0e",
72
76
  },
73
77
  };
74
78
  exports.priceInfoObjectIds = {
@@ -117,6 +121,8 @@ exports.priceInfoObjectIds = {
117
121
  USDY: "0x1fec4ed70f870911948d93eb2abe6fa4a3a4b1e4633cf36c7e91adfb4af1733f",
118
122
  BLUE: "0xcc9016bcfaf1839f1dd63b0929a0d62dfb93e84442fd5b4598552605e365b3ec",
119
123
  BLUB: "0xdcd4cc5f06fac1ca72e8551ab1a2e847298afa6f19e370ad9891199a59d2c22e",
124
+ JPY: "0xd14cadaf54a926f701db021eceaa89b3d09363e1bce51bfcb2291a32a693f928",
125
+ XAU: "0x742d48ff1d7a45c91aee4ad4f0059396c28988f99074d4a191951ac086b90a5a",
120
126
  },
121
127
  };
122
128
  // Get the state IDs of the Pyth and Wormhole contracts from
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": "1.6.19",
5
+ "version": "1.6.21",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.9.34",