@typus/typus-sdk 1.2.78 → 1.2.80
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";
|
|
21
22
|
index: number;
|
|
22
23
|
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";
|
|
27
28
|
index: number;
|
|
28
29
|
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";
|
|
33
34
|
index: number;
|
|
34
35
|
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";
|
|
39
40
|
index: number;
|
|
40
41
|
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";
|
|
45
46
|
index: number;
|
|
46
47
|
kind: "Input";
|
|
47
|
-
type: "pure";
|
|
48
48
|
value?: any;
|
|
49
49
|
} | TransactionObjectArgument;
|
|
50
50
|
export declare function typeArgIsPure(type: string): boolean;
|
|
@@ -270,6 +270,9 @@ var parseStrikes = function (period, optionType, metadata) {
|
|
|
270
270
|
break;
|
|
271
271
|
case "4":
|
|
272
272
|
strikes = [metadata.split("-")[2], metadata.split("-")[3]];
|
|
273
|
+
if (period == "3") {
|
|
274
|
+
strikes = [metadata.split("-")[3], metadata.split("-")[4]];
|
|
275
|
+
}
|
|
273
276
|
strikes = strikes.sort(function (a, b) { return Number(a) - Number(b); });
|
|
274
277
|
break;
|
|
275
278
|
case "5":
|
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.80",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mysten/bcs": "^0.11.1",
|
|
8
|
-
"@mysten/kiosk": "0.
|
|
9
|
-
"@mysten/sui.js": "0.
|
|
8
|
+
"@mysten/kiosk": "0.7.12",
|
|
9
|
+
"@mysten/sui.js": "0.48.0",
|
|
10
10
|
"@types/node": "^20.5.7",
|
|
11
11
|
"aftermath-ts-sdk": "^1.1.14",
|
|
12
12
|
"bignumber.js": "^9.1.1",
|