@matchain/matchid-sdk-react 0.1.54 → 0.1.55-alpha.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/dist/assets/icon/index.d.mts +2 -2
- package/dist/assets/icon/index.d.ts +2 -2
- package/dist/chunk-LTPXS5PV.mjs +97 -0
- package/dist/chunk-LTPXS5PV.mjs.map +1 -0
- package/dist/{chunk-ZPBHHXEE.mjs → chunk-SKA35IYC.mjs} +6547 -6893
- package/dist/chunk-SKA35IYC.mjs.map +1 -0
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +35 -381
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -6
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +45 -215
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +6 -6
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +220 -229
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-91BdMYDA.d.ts → index-6-oVBXRP.d.mts} +2 -5
- package/dist/{index-D5geEbXf.d.ts → index-6kXyNEXB.d.ts} +3 -2
- package/dist/{index-DSvRdAyZ.d.mts → index-CB6ZNvzn.d.mts} +3 -2
- package/dist/{index-CkHDxE7B.d.mts → index-CBQXIlWu.d.mts} +1 -1
- package/dist/{index-ChHJD4NZ.d.mts → index-CMH6Jesl.d.ts} +2 -5
- package/dist/{index-Dj1K-UdZ.d.ts → index-CNH7a3bx.d.ts} +5 -18
- package/dist/{index-CZu_8fKl.d.ts → index-CPPDmmz8.d.ts} +1 -1
- package/dist/{index-DX1vzCrM.d.mts → index-CqKohtvj.d.mts} +1 -1
- package/dist/{index-CPk553v5.d.mts → index-D0Psl8Ue.d.mts} +1 -1
- package/dist/{index-DFBrN7dx.d.ts → index-DbQn4z1l.d.ts} +1 -1
- package/dist/{index-DjwwXNp4.d.mts → index-G15A08DI.d.mts} +3 -40
- package/dist/{index-Vxvd14yW.d.ts → index-Y5WRoqzn.d.ts} +3 -40
- package/dist/{index-CPwcm70o.d.mts → index-a_Qt7NXk.d.mts} +5 -18
- package/dist/{index-SRHVQn5G.d.ts → index-agAVLGF5.d.ts} +1 -1
- package/dist/index.css +1 -121
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +603 -878
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Bi9iq57H.d.mts → types-CXzZS0eM.d.mts} +1 -20
- package/dist/{types-Bi9iq57H.d.ts → types-CXzZS0eM.d.ts} +1 -20
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +57 -72
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/example/src/App.tsx +0 -8
- package/example/src/pages/Wallet/index.tsx +4 -1
- package/package.json +1 -1
- package/dist/chunk-ZPBHHXEE.mjs.map +0 -1
- package/example/src/pages/Contact/index.tsx +0 -90
package/dist/ui/index.mjs
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
Skeleton_default,
|
|
16
16
|
Switch,
|
|
17
17
|
Tabs
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-SKA35IYC.mjs";
|
|
19
19
|
import "../chunk-UA6XHZHX.mjs";
|
|
20
20
|
import "../chunk-IZOOVZAD.mjs";
|
|
21
|
-
import "../chunk-JX73EY6V.mjs";
|
|
22
21
|
import "../chunk-FKXS2XRG.mjs";
|
|
22
|
+
import "../chunk-JX73EY6V.mjs";
|
|
23
23
|
import "../chunk-J5LGTIGS.mjs";
|
|
24
24
|
export {
|
|
25
25
|
AlphaAvatar,
|
package/example/src/App.tsx
CHANGED
|
@@ -14,7 +14,6 @@ import useLocalStore from "@/store/useLocalStore";
|
|
|
14
14
|
import {LoginButton} from "@matchain/matchid-sdk-react/components";
|
|
15
15
|
import UI from "@/pages/UI";
|
|
16
16
|
import TgApp from "@/pages/TgApp";
|
|
17
|
-
import Contact from "./pages/Contact";
|
|
18
17
|
import {WagmiProvider} from "wagmi";
|
|
19
18
|
|
|
20
19
|
|
|
@@ -54,12 +53,6 @@ function Nav() {
|
|
|
54
53
|
onActive: location.pathname === '/wallet',
|
|
55
54
|
hidden: !isLogin
|
|
56
55
|
},
|
|
57
|
-
{
|
|
58
|
-
name: 'Contact',
|
|
59
|
-
url: '/contact',
|
|
60
|
-
onActive: location.pathname === '/contact',
|
|
61
|
-
hidden: !isLogin
|
|
62
|
-
},
|
|
63
56
|
]
|
|
64
57
|
return list
|
|
65
58
|
}, [location.pathname, isLogin])
|
|
@@ -150,7 +143,6 @@ function RouterApp() {
|
|
|
150
143
|
<Route element={<RoutePrivate/>}>
|
|
151
144
|
<Route path="/user" element={<User/>}/>
|
|
152
145
|
<Route path="/wallet" element={<Wallet/>}/>
|
|
153
|
-
<Route path="/contact" element={<Contact/>}/>
|
|
154
146
|
</Route>
|
|
155
147
|
</Routes>
|
|
156
148
|
</div>
|
|
@@ -42,6 +42,7 @@ import AssetListModal from "@/pages/Wallet/components/AssetListModal";
|
|
|
42
42
|
import ImportTokenListModal from "@/pages/Wallet/components/ImportTokenListModal";
|
|
43
43
|
import WalletChainListModal from "@/pages/Wallet/components/WalletChainListModal";
|
|
44
44
|
import MatchWallet from "@/pages/Wallet/components/MatchWallet";
|
|
45
|
+
import {ethers} from "ethers";
|
|
45
46
|
|
|
46
47
|
const chainList = [
|
|
47
48
|
mainnet,
|
|
@@ -147,6 +148,8 @@ export default function Wallet() {
|
|
|
147
148
|
}
|
|
148
149
|
const request = await walletClient.prepareTransactionRequest(transaction)
|
|
149
150
|
const res = await evmAccount.signTransaction!(request as TransactionSerializable)
|
|
151
|
+
const tx = ethers.utils.parseTransaction(res);
|
|
152
|
+
console.log('tx',tx)
|
|
150
153
|
setTransactionSign(res)
|
|
151
154
|
} catch (e) {
|
|
152
155
|
console.error(e)
|
|
@@ -432,7 +435,7 @@ function ERC20() {
|
|
|
432
435
|
return <div className="mt-[20px]">
|
|
433
436
|
<ButtonGroup title={"ERC20"}></ButtonGroup>
|
|
434
437
|
<ButtonGroup title={"Contract Address"}>
|
|
435
|
-
<input className="border px-[8px]" type={'text'} placeholder={'
|
|
438
|
+
<input className="border px-[8px]" type={'text'} placeholder={'contract'} value={erc20Address}
|
|
436
439
|
onChange={(e) => setErc20Address(e.target.value)}/>
|
|
437
440
|
</ButtonGroup>
|
|
438
441
|
<ButtonGroup title={"Info"}>
|