@megaeth-labs/wallet-sdk 0.1.3-beta.0 → 0.1.3
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/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/package.json +66 -68
package/dist/index.d.cts
CHANGED
|
@@ -17,16 +17,14 @@ interface TransferRequest {
|
|
|
17
17
|
type: 'native' | 'erc20' | 'erc721' | 'erc1155';
|
|
18
18
|
contractAddress?: string;
|
|
19
19
|
tokenId?: number;
|
|
20
|
-
silent?: boolean;
|
|
21
20
|
}
|
|
22
21
|
interface CallContractRequest {
|
|
23
22
|
address: `0x${string}`;
|
|
24
|
-
abi
|
|
25
|
-
functionName
|
|
26
|
-
args
|
|
27
|
-
value?: bigint;
|
|
28
|
-
data?: `0x${string}`;
|
|
23
|
+
abi: any;
|
|
24
|
+
functionName: string;
|
|
25
|
+
args: any[];
|
|
29
26
|
silent?: boolean;
|
|
27
|
+
value?: bigint | string;
|
|
30
28
|
}
|
|
31
29
|
interface GetFromContractRequest {
|
|
32
30
|
address: `0x${string}`;
|
package/dist/index.d.ts
CHANGED
|
@@ -17,16 +17,14 @@ interface TransferRequest {
|
|
|
17
17
|
type: 'native' | 'erc20' | 'erc721' | 'erc1155';
|
|
18
18
|
contractAddress?: string;
|
|
19
19
|
tokenId?: number;
|
|
20
|
-
silent?: boolean;
|
|
21
20
|
}
|
|
22
21
|
interface CallContractRequest {
|
|
23
22
|
address: `0x${string}`;
|
|
24
|
-
abi
|
|
25
|
-
functionName
|
|
26
|
-
args
|
|
27
|
-
value?: bigint;
|
|
28
|
-
data?: `0x${string}`;
|
|
23
|
+
abi: any;
|
|
24
|
+
functionName: string;
|
|
25
|
+
args: any[];
|
|
29
26
|
silent?: boolean;
|
|
27
|
+
value?: bigint | string;
|
|
30
28
|
}
|
|
31
29
|
interface GetFromContractRequest {
|
|
32
30
|
address: `0x${string}`;
|
package/package.json
CHANGED
|
@@ -1,70 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
21
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
22
|
-
"dev:link": "pnpm build && pnpm link --global",
|
|
23
|
-
"test": "vitest",
|
|
24
|
-
"test:ui": "vitest --ui",
|
|
25
|
-
"test:coverage": "vitest --coverage",
|
|
26
|
-
"lint": "biome lint ./src",
|
|
27
|
-
"format": "biome format --write ./src",
|
|
28
|
-
"check": "biome check ./src",
|
|
29
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
-
"prepare": "husky"
|
|
31
|
-
},
|
|
32
|
-
"keywords": [
|
|
33
|
-
"megaeth",
|
|
34
|
-
"wallet",
|
|
35
|
-
"sdk",
|
|
36
|
-
"web3"
|
|
37
|
-
],
|
|
38
|
-
"author": "",
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "git+https://github.com/megaeth-labs/wallet-sdk.git"
|
|
43
|
-
},
|
|
44
|
-
"sideEffects": false,
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"registry": "https://registry.npmjs.org/",
|
|
47
|
-
"access": "restricted"
|
|
48
|
-
},
|
|
49
|
-
"packageManager": "pnpm@10.29.2",
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"penpal": "7.0.6"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@biomejs/biome": "2.4.6",
|
|
55
|
-
"@types/node": "25.3.5",
|
|
56
|
-
"@vitest/coverage-v8": "4.0.18",
|
|
57
|
-
"@vitest/ui": "4.0.18",
|
|
58
|
-
"husky": "^9.1.7",
|
|
59
|
-
"jsdom": "28.1.0",
|
|
60
|
-
"lint-staged": "^16.4.0",
|
|
61
|
-
"tsup": "8.5.1",
|
|
62
|
-
"typescript": "5.9.3",
|
|
63
|
-
"vitest": "4.0.18"
|
|
64
|
-
},
|
|
65
|
-
"lint-staged": {
|
|
66
|
-
"src/**/*.{ts,js,json}": [
|
|
67
|
-
"pnpm format"
|
|
68
|
-
]
|
|
2
|
+
"name": "@megaeth-labs/wallet-sdk",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "MegaETH Wallet SDK for web applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
69
14
|
}
|
|
70
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"keywords": [
|
|
20
|
+
"megaeth",
|
|
21
|
+
"wallet",
|
|
22
|
+
"sdk",
|
|
23
|
+
"web3"
|
|
24
|
+
],
|
|
25
|
+
"author": "",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/megaeth-labs/wallet-sdk.git"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"registry": "https://registry.npmjs.org/",
|
|
34
|
+
"access": "restricted"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"penpal": "7.0.6"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@biomejs/biome": "2.4.6",
|
|
41
|
+
"@types/node": "25.3.5",
|
|
42
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
43
|
+
"@vitest/ui": "4.0.18",
|
|
44
|
+
"husky": "^9.1.7",
|
|
45
|
+
"jsdom": "28.1.0",
|
|
46
|
+
"lint-staged": "^16.4.0",
|
|
47
|
+
"tsup": "8.5.1",
|
|
48
|
+
"typescript": "5.9.3",
|
|
49
|
+
"vitest": "4.0.18"
|
|
50
|
+
},
|
|
51
|
+
"lint-staged": {
|
|
52
|
+
"src/**/*.{ts,js,json}": [
|
|
53
|
+
"pnpm format"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
58
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
59
|
+
"dev:link": "pnpm build && pnpm link --global",
|
|
60
|
+
"test": "vitest",
|
|
61
|
+
"test:ui": "vitest --ui",
|
|
62
|
+
"test:coverage": "vitest --coverage",
|
|
63
|
+
"lint": "biome lint ./src",
|
|
64
|
+
"format": "biome format --write ./src",
|
|
65
|
+
"check": "biome check ./src",
|
|
66
|
+
"typecheck": "tsc --noEmit"
|
|
67
|
+
}
|
|
68
|
+
}
|