@earthworm/wallet-sdk 0.2.0 → 0.2.1
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/README.md +3 -3
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @earthworm/wallet-sdk
|
|
2
2
|
|
|
3
|
-
Browser EVM wallet SDK for DApps (MetaMask, Coinbase, TronLink,
|
|
3
|
+
Browser EVM wallet SDK for DApps (MetaMask, Coinbase, TronLink, TokenPocket, contract reads).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@ pnpm add @earthworm/wallet-sdk ethers
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { initWalletSdk,
|
|
14
|
+
import { initWalletSdk, walletEvents } from "@earthworm/wallet-sdk";
|
|
15
15
|
|
|
16
16
|
initWalletSdk({
|
|
17
|
-
isMainnet: true,
|
|
17
|
+
isMainnet: true, // Set to true for mainnet, false for testnet
|
|
18
18
|
contract: { address: "0x...", abi: [] },
|
|
19
19
|
});
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earthworm/wallet-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "EVM wallet utilities for browser DApps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=20.0.0"
|
|
9
|
+
},
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"access": "public"
|
|
9
12
|
},
|
|
@@ -21,10 +24,10 @@
|
|
|
21
24
|
},
|
|
22
25
|
"keywords": [
|
|
23
26
|
"ethereum",
|
|
24
|
-
"wallet",
|
|
25
|
-
"eip6963",
|
|
26
27
|
"ethers",
|
|
27
|
-
"dapp"
|
|
28
|
+
"dapp",
|
|
29
|
+
"wallets",
|
|
30
|
+
"bsc"
|
|
28
31
|
],
|
|
29
32
|
"license": "MIT",
|
|
30
33
|
"author": "Alex",
|