@typus/typus-sdk 1.8.42 → 1.8.43-upgrade

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 (47) hide show
  1. package/dist/src/auto-bid/view-function.d.ts +0 -2
  2. package/dist/src/auto-bid/view-function.js +7 -76
  3. package/dist/src/constants/constant.d.ts +0 -3
  4. package/dist/src/constants/constant.js +1 -8
  5. package/dist/src/dice/fetch.d.ts +0 -4
  6. package/dist/src/dice/fetch.js +59 -116
  7. package/dist/src/typus/airdrop/view-function.js +5 -8
  8. package/dist/src/typus/leaderboard/view-function.js +5 -8
  9. package/dist/src/typus/tails-staking/view-function.js +10 -14
  10. package/dist/src/typus/user/view-function.js +5 -6
  11. package/dist/src/typus-dov-single-v2/function/bidding.d.ts +4 -3
  12. package/dist/src/typus-dov-single-v2/function/bidding.js +10 -11
  13. package/dist/src/typus-dov-single-v2/function/token.js +1 -1
  14. package/dist/src/typus-dov-single-v2/history/index.d.ts +0 -1
  15. package/dist/src/typus-dov-single-v2/history/index.js +0 -1
  16. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +2 -3
  17. package/dist/src/typus-dov-single-v2/history/user-history.js +122 -184
  18. package/dist/src/typus-dov-single-v2/otc-entry.js +5 -6
  19. package/dist/src/typus-dov-single-v2/user-entry.d.ts +1 -1
  20. package/dist/src/typus-dov-single-v2/view-function.js +29 -27
  21. package/dist/src/typus-hedge/view-function.js +10 -10
  22. package/dist/src/typus-launch/airdrop/view-function.js +3 -5
  23. package/dist/src/typus-launch/auction/view-function.js +17 -16
  24. package/dist/src/typus-launch/funding-vault/view-function.js +20 -18
  25. package/dist/src/typus-launch/improvement-proposal/view-function.js +17 -18
  26. package/dist/src/typus-launch/ve-typus/view-function.js +15 -15
  27. package/dist/src/typus-safu/view-function.js +13 -13
  28. package/dist/src/utils/api/price.js +1 -1
  29. package/dist/src/utils/graphQl.d.ts +24 -0
  30. package/dist/src/utils/graphQl.js +129 -0
  31. package/dist/src/utils/index.d.ts +1 -0
  32. package/dist/src/utils/index.js +1 -0
  33. package/dist/src/utils/oracle.js +13 -14
  34. package/dist/src/utils/sponsoredTx.d.ts +2 -2
  35. package/dist/src/utils/typusConfig.d.ts +4 -0
  36. package/dist/src/utils/typusConfig.js +33 -31
  37. package/package.json +8 -8
  38. package/dist/src/dice/view-function.d.ts +0 -1
  39. package/dist/src/dice/view-function.js +0 -20
  40. package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +0 -123
  41. package/dist/src/typus-dov-single-v2/history/vault-history.js +0 -307
  42. package/dist/src/typus-nft/fetch.d.ts +0 -70
  43. package/dist/src/typus-nft/fetch.js +0 -631
  44. package/dist/src/typus-nft/index.d.ts +0 -2
  45. package/dist/src/typus-nft/index.js +0 -18
  46. package/dist/src/typus-nft/user-entry.d.ts +0 -57
  47. package/dist/src/typus-nft/user-entry.js +0 -161
@@ -1,2 +1 @@
1
1
  export * from "./user-history";
2
- export * from "./vault-history";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user-history"), exports);
18
- __exportStar(require("./vault-history"), exports);
@@ -1,9 +1,8 @@
1
- import { EventId, SuiClient, SuiEvent } from "@mysten/sui/client";
2
1
  import { Vault } from "../../../src/typus-dov-single-v2";
3
2
  import { TOKEN } from "../../../src/constants";
4
3
  export { getNewBidFromSentio, getExerciseFromSentio } from "../../../src/utils/api/sentio/events";
5
- export declare function getUserEvents(provider: SuiClient, sender: string, cursor?: EventId | null): Promise<[SuiEvent[], EventId | null | undefined]>;
6
- export declare function getAutoBidEvents(provider: SuiClient, originPackage: string, startTimeMs: number): Promise<SuiEvent[]>;
4
+ import { SuiGraphQLClient } from "@mysten/sui/graphql";
5
+ export declare function getUserEvents(graphQlClient: SuiGraphQLClient, sender: string, cursor?: string | null): Promise<import("../../../src/utils/graphQl").Event[]>;
7
6
  export interface TxHistory {
8
7
  Index: string | undefined;
9
8
  Action: string | undefined;