@dogeos/dogeos-sdk 3.0.5 → 3.0.7-beta.0
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 +20 -4
- package/dist/dogeos-sdk.css +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +3145 -2326
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -7,9 +7,7 @@ A lightweight React SDK for integrating crypto wallet connections into your app.
|
|
|
7
7
|
- [Installation](#installation)
|
|
8
8
|
- [Setup Provider](#setup-provider)
|
|
9
9
|
- [Displaying the Modal](#displaying-the-modal)
|
|
10
|
-
- [Customize Theme](#customize-theme)
|
|
11
10
|
- [Account Actions](#account-actions)
|
|
12
|
-
- [Advanced Configuration](#advanced-configuration)
|
|
13
11
|
- [Additional Reference](#additional-reference)
|
|
14
12
|
|
|
15
13
|
---
|
|
@@ -48,14 +46,14 @@ Wrap your app with `WalletConnectProvider` at the root component.
|
|
|
48
46
|
import React from "react";
|
|
49
47
|
import { WalletConnectProvider } from "@dogeos/dogeos-sdk";
|
|
50
48
|
import "@dogeos/dogeos-sdk/style.css";
|
|
51
|
-
import type { WalletConfig,
|
|
49
|
+
import type { WalletConfig, WalletConnectKitConfig, WalletConnectProtocolConfig, clientId } from "@dogeos/dogeos-sdk"
|
|
52
50
|
|
|
53
51
|
const config = {
|
|
54
52
|
connectors?: WalletConfig[];
|
|
55
53
|
// Supported chains (for EVM, compatible with viem/Chain)
|
|
56
54
|
chains?: Partial<Record<ChainType, EvmChain[] | any[]>>;
|
|
57
55
|
walletConnectConfig?: WalletConnectProtocolConfig;
|
|
58
|
-
|
|
56
|
+
clientId?: string;
|
|
59
57
|
} as WalletConnectConfig;
|
|
60
58
|
|
|
61
59
|
export default function App() {
|
|
@@ -67,6 +65,24 @@ export default function App() {
|
|
|
67
65
|
}
|
|
68
66
|
```
|
|
69
67
|
|
|
68
|
+
Embedded Wallet Evm Provider Method
|
|
69
|
+
|
|
70
|
+
support:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
// methods
|
|
74
|
+
connect;
|
|
75
|
+
disconnect;
|
|
76
|
+
getChainId;
|
|
77
|
+
switchChain;
|
|
78
|
+
signMessage(siweSign);
|
|
79
|
+
signTypedData;
|
|
80
|
+
eth_signTransaction;
|
|
81
|
+
sendTransaction;
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
-[MateMask Provider Doc](#https://docs.metamask.io/wallet/reference/provider-api/)
|
|
85
|
+
|
|
70
86
|
---
|
|
71
87
|
|
|
72
88
|
## Displaying the Modal
|