@cetusprotocol/terminal 1.9.0 → 2.0.0

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.
Binary file
@@ -1,7 +1 @@
1
- export default function useFastModeTransaction(): {
2
- getFastModeTx: (tx: any, maxCapForGas: string, customGasPrice: string) => Promise<{
3
- result: import('@mysten/sui/client').SuiTransactionBlockResponse;
4
- startExecuteTime: number;
5
- transactionBlockBytes: string;
6
- }>;
7
- };
1
+ export default function useFastModeTransaction(): any;
@@ -1,4 +1,4 @@
1
- import { SuiTransactionBlockResponse } from '@mysten/sui/client';
1
+ import { SuiTransactionBlockResponse } from '@mysten/sui/jsonRpc';
2
2
  import { Transaction } from '@mysten/sui/transactions';
3
3
  import { SignedTransaction } from '@mysten/wallet-standard';
4
4
  export declare function useSigner(): {
@@ -1,6 +1,5 @@
1
1
  import { Token } from '../types';
2
- import { CoinMetadata } from '@mysten/sui/client';
3
- export declare function coinMetadataToCoinInfo(metadata: CoinMetadata, coinType: string): Token;
2
+ export declare function coinMetadataToCoinInfo(metadata: any, coinType: string): Token;
4
3
  export declare function useTokens(): {
5
4
  getTrustTokens: () => Promise<void>;
6
5
  fetchTokenInfo: (coinType: string) => Promise<Token | undefined>;
@@ -1,8 +1,8 @@
1
1
  import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
2
- import { SuiClient } from '@mysten/sui/client';
2
+ import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
3
3
  interface ClientState {
4
- suiClient: SuiClient;
5
- setSuiClient: (value: SuiClient) => void;
4
+ suiClient: SuiJsonRpcClient;
5
+ setSuiClient: (value: SuiJsonRpcClient) => void;
6
6
  aggregatorSDK: AggregatorClient;
7
7
  setAggregatorSDK: (client: AggregatorClient) => void;
8
8
  }
@@ -90,5 +90,6 @@ export declare enum AggregatorServerErrorCode {
90
90
  NumberTooLarge = 10001,
91
91
  NoRouter = 10002,
92
92
  InsufficientLiquidity = 10003,
93
- HoneyPot = 10004
93
+ HoneyPot = 10004,
94
+ NotFoundRoute = 1007
94
95
  }
@@ -1,5 +1,5 @@
1
1
  import { BalanceChanges, Token } from '../types';
2
- import { SuiTransactionBlockResponse } from '@mysten/sui/client';
2
+ import { SuiTransactionBlockResponse } from '@mysten/sui/jsonRpc';
3
3
  export declare function cancelBubble(e: any): void;
4
4
  export declare const addressAbridge: (address: string | undefined, addressAbridgeStyle?: string) => string;
5
5
  export declare const objIsEqual: (obj1: any, obj2: any) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/terminal",
3
- "version": "1.9.0",
3
+ "version": "2.0.0",
4
4
  "type": "commonjs",
5
5
  "main": "dist/cetus-swap.cjs.js",
6
6
  "module": "dist/cetus-swap.es.js",
@@ -22,7 +22,7 @@
22
22
  "publish:test": "node ./version.mjs && npm publish --tag experimental"
23
23
  },
24
24
  "dependencies": {
25
- "@cetusprotocol/aggregator-sdk": "1.4.4",
25
+ "@cetusprotocol/aggregator-sdk": "1.4.5",
26
26
  "@radix-ui/colors": "^3.0.0",
27
27
  "@radix-ui/react-icons": "^1.3.0",
28
28
  "@radix-ui/themes": "^2.0.0",
@@ -43,8 +43,8 @@
43
43
  "zustand": "^5.0.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@mysten/dapp-kit": "^0.14.40",
47
- "@mysten/sui": "^1.16.0",
46
+ "@mysten/dapp-kit": "1.0.3",
47
+ "@mysten/sui": "2.6.0",
48
48
  "@rollup/plugin-strip": "^3.0.4",
49
49
  "@types/bn.js": "^5.1.6",
50
50
  "@types/lodash-es": "^4.17.12",
@@ -1,3 +0,0 @@
1
- import { BuildTransactionOptions, TransactionDataBuilder } from '@mysten/sui/transactions';
2
- export declare const COIN_WITH_BALANCE = "CoinWithBalance";
3
- export declare function resolveCoinBalance(transactionData: TransactionDataBuilder, buildOptions: BuildTransactionOptions, next: () => Promise<void>): Promise<void>;