@typus/typus-sdk 1.2.81 → 1.2.82-dapp-kit
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.
|
@@ -18,33 +18,33 @@ export declare function parseTypeName(name: string): {
|
|
|
18
18
|
export declare function isTransactionArgument(arg: GenericArg): arg is TransactionArgument;
|
|
19
19
|
export declare function isTransactionObjectArgument(arg: GenericArg): arg is TransactionObjectArgument;
|
|
20
20
|
export declare function obj(txb: TransactionBlock, arg: ObjectArg): {
|
|
21
|
-
type: "pure";
|
|
22
21
|
index: number;
|
|
23
22
|
kind: "Input";
|
|
23
|
+
type: "pure";
|
|
24
24
|
value?: any;
|
|
25
25
|
} | TransactionObjectArgument;
|
|
26
26
|
export declare function pure(txb: TransactionBlock, arg: PureArg, type: string): {
|
|
27
|
-
type: "pure";
|
|
28
27
|
index: number;
|
|
29
28
|
kind: "Input";
|
|
29
|
+
type: "pure";
|
|
30
30
|
value?: any;
|
|
31
31
|
} | TransactionObjectArgument;
|
|
32
32
|
export declare function option(txb: TransactionBlock, type: string, arg: GenericArg | null): {
|
|
33
|
-
type: "pure";
|
|
34
33
|
index: number;
|
|
35
34
|
kind: "Input";
|
|
35
|
+
type: "pure";
|
|
36
36
|
value?: any;
|
|
37
37
|
} | TransactionObjectArgument;
|
|
38
38
|
export declare function generic(txb: TransactionBlock, type: string, arg: GenericArg): {
|
|
39
|
-
type: "pure";
|
|
40
39
|
index: number;
|
|
41
40
|
kind: "Input";
|
|
41
|
+
type: "pure";
|
|
42
42
|
value?: any;
|
|
43
43
|
} | TransactionObjectArgument;
|
|
44
44
|
export declare function vector(txb: TransactionBlock, itemType: string, items: Array<GenericArg> | TransactionArgument): {
|
|
45
|
-
type: "pure";
|
|
46
45
|
index: number;
|
|
47
46
|
kind: "Input";
|
|
47
|
+
type: "pure";
|
|
48
48
|
value?: any;
|
|
49
49
|
} | TransactionObjectArgument;
|
|
50
50
|
export declare function typeArgIsPure(type: string): boolean;
|
|
@@ -250,10 +250,10 @@ var calcEstPnl = function (live, incentive, bidSize, optionType, assets, strikes
|
|
|
250
250
|
if (!live) {
|
|
251
251
|
estPnls.push({
|
|
252
252
|
value: profit,
|
|
253
|
-
token: assets[
|
|
253
|
+
token: assets[0],
|
|
254
254
|
});
|
|
255
255
|
if (dToken !== bToken) {
|
|
256
|
-
estPnls.push({ value: "-" + cost, token:
|
|
256
|
+
estPnls.push({ value: "-" + cost, token: assets[1] });
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
return estPnls;
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "@typus/typus-sdk",
|
|
3
3
|
"author": "Typus",
|
|
4
4
|
"description": "typus sdk",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.82-dapp-kit",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mysten/bcs": "^0.11.1",
|
|
8
|
-
"@mysten/kiosk": "0.
|
|
9
|
-
"@mysten/sui.js": "0.
|
|
8
|
+
"@mysten/kiosk": "0.8.10",
|
|
9
|
+
"@mysten/sui.js": "0.54.1",
|
|
10
10
|
"@types/node": "^20.5.7",
|
|
11
11
|
"aftermath-ts-sdk": "^1.1.14",
|
|
12
12
|
"bignumber.js": "^9.1.1",
|