@cetusprotocol/terminal 1.10.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.
- package/dist/cetus-swap.cjs.js +62 -58
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +39331 -41086
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +62 -58
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/hooks/common/useFastModeTransaction.d.ts +1 -7
- package/dist/hooks/common/useSigner.d.ts +1 -1
- package/dist/hooks/useTokens.d.ts +1 -2
- package/dist/stores/client.d.ts +3 -3
- package/dist/utils/common.d.ts +1 -1
- package/package.json +3 -3
- package/dist/hooks/common/resolveCoinBalance.d.ts +0 -3
|
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/
|
|
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
|
-
|
|
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>;
|
package/dist/stores/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
3
3
|
interface ClientState {
|
|
4
|
-
suiClient:
|
|
5
|
-
setSuiClient: (value:
|
|
4
|
+
suiClient: SuiJsonRpcClient;
|
|
5
|
+
setSuiClient: (value: SuiJsonRpcClient) => void;
|
|
6
6
|
aggregatorSDK: AggregatorClient;
|
|
7
7
|
setAggregatorSDK: (client: AggregatorClient) => void;
|
|
8
8
|
}
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BalanceChanges, Token } from '../types';
|
|
2
|
-
import { SuiTransactionBlockResponse } from '@mysten/sui/
|
|
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": "
|
|
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",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"zustand": "^5.0.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@mysten/dapp-kit": "
|
|
47
|
-
"@mysten/sui": "
|
|
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>;
|