@typus/typus-sdk 1.2.84 → 1.2.85
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;
|
package/lib/utils/token.js
CHANGED
|
@@ -10,6 +10,8 @@ exports.typeArgsToAssets = typeArgsToAssets;
|
|
|
10
10
|
function typeArgToAsset(typeArg) {
|
|
11
11
|
var typeArgs = typeArg.split("::");
|
|
12
12
|
switch ((0, utils_1.normalizeSuiAddress)(typeArgs[0])) {
|
|
13
|
+
case "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55":
|
|
14
|
+
return "VSUI";
|
|
13
15
|
case "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881":
|
|
14
16
|
return "WBTC";
|
|
15
17
|
case "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5":
|
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.85",
|
|
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
|
"@pythnetwork/client": "^2.21.0",
|
|
11
11
|
"@solana/web3.js": "^1.91.8",
|
|
12
12
|
"@types/node": "^20.5.7",
|