@matchain/matchid-sdk-react 0.1.48-alpha.23 → 0.1.48-alpha.25
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 +1 -1
- package/dist/assets/icon/index.d.ts +1 -1
- package/dist/{chunk-SB54XHCJ.mjs → chunk-MD3AVLZD.mjs} +2 -2
- package/dist/{chunk-FYW4P7HS.mjs → chunk-UR57LTMH.mjs} +26 -27
- package/dist/chunk-UR57LTMH.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 +14 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +5 -5
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +3 -3
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +9 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-Ca30Hgn7.d.mts → index-BMfaixEx.d.mts} +1 -1
- package/dist/{index-CN2jy6bb.d.ts → index-BMsj8hJv.d.ts} +2 -2
- package/dist/{index-BOsoQSmx.d.ts → index-BcEreCxd.d.ts} +1 -1
- package/dist/{index-BFSCCmlU.d.ts → index-Bpmrd7mh.d.ts} +1 -1
- package/dist/{index-DTYp8DRd.d.ts → index-Bvc8cjpN.d.ts} +2 -2
- package/dist/{index-Bk_dqXKp.d.mts → index-C9F6f2iz.d.mts} +2 -2
- package/dist/{index-B4gKj0ro.d.mts → index-C9qYyRgt.d.mts} +2 -2
- package/dist/{index-CdM22eod.d.mts → index-Cou96DpL.d.mts} +1 -1
- package/dist/{index-BHXlpUg5.d.ts → index-Cy3K-Yao.d.ts} +1 -1
- package/dist/{index-D3GBq1P1.d.mts → index-D4ju2J_e.d.mts} +1 -1
- package/dist/{index-BObJQar4.d.mts → index-DUHkH5t-.d.mts} +11 -1
- package/dist/{index-CSTyna62.d.ts → index-DcQm2dkr.d.ts} +11 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-Dc15ure7.d.mts → types-DzVVzMYU.d.mts} +1 -1
- package/dist/{types-Dc15ure7.d.ts → types-DzVVzMYU.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/example/src/pages/Wallet/components/MatchWallet.tsx +24 -2
- package/package.json +1 -1
- package/dist/chunk-FYW4P7HS.mjs.map +0 -1
- /package/dist/{chunk-SB54XHCJ.mjs.map → chunk-MD3AVLZD.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
chains_exports
|
|
3
|
-
} from "./chunk-HYQ3T6WW.mjs";
|
|
4
|
-
import {
|
|
5
|
-
types_exports
|
|
6
|
-
} from "./chunk-HBOS3RBL.mjs";
|
|
7
1
|
import {
|
|
8
2
|
api_exports
|
|
9
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MD3AVLZD.mjs";
|
|
10
4
|
import {
|
|
11
5
|
MatchProvider,
|
|
12
6
|
components_exports,
|
|
13
7
|
hooks_exports,
|
|
14
8
|
useMatch
|
|
15
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UR57LTMH.mjs";
|
|
10
|
+
import {
|
|
11
|
+
types_exports
|
|
12
|
+
} from "./chunk-HBOS3RBL.mjs";
|
|
16
13
|
import "./chunk-UA6XHZHX.mjs";
|
|
17
|
-
import "./chunk-5JHHHLG4.mjs";
|
|
18
14
|
import {
|
|
19
15
|
ui_exports
|
|
20
16
|
} from "./chunk-FB5MHLWX.mjs";
|
|
17
|
+
import "./chunk-5JHHHLG4.mjs";
|
|
21
18
|
import "./chunk-LHNKZISB.mjs";
|
|
19
|
+
import {
|
|
20
|
+
chains_exports
|
|
21
|
+
} from "./chunk-HYQ3T6WW.mjs";
|
|
22
22
|
import "./chunk-J5LGTIGS.mjs";
|
|
23
23
|
export {
|
|
24
24
|
api_exports as Api,
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.mjs';
|
|
2
|
-
export { A as Address,
|
|
2
|
+
export { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-DzVVzMYU.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { A as AuthParams, C as ChainType, E as EmbeddedWalletsParams, R as RecoveryType } from '../mpc-CTbBWHld.js';
|
|
2
|
-
export { A as Address,
|
|
2
|
+
export { A as Address, k as AnyObject, o as AppConfigType, p as BindInfoType, q as BindItemType, r as BindWalletParam, B as ButtonProps, C as CEXType, D as DeepPartial, s as DrawerProps, E as EmailModalProps, H as Hash, a as IEnvConfigType, t as IEnvName, v as ILoginWalletReq, I as IMatchEvents, h as ISocialLoginMethod, w as IconProps, x as InputProps, L as LocaleType, b as LoginBoxProps, j as LoginMethodType, f as LoginModalProps, e as LoginPanelProps, y as MessageType, z as MetaPageType, F as ModalProps, M as ModalWithHeaderProps, O as OtherLoginMethodType, i as OverviewInfo, G as PohItemType, J as PohZkpassParams, P as PopoverPositionType, K as PopoverProps, d as PopoverTypeType, R as RecommendLoginMethodType, T as ThemeType, N as UIProps, n as UserAssetToken, U as UserChainType, m as UserImportTokenType, Q as UserPopoverProps, S as UserTransactionNextPageParams, V as UserTransactionRecordType, l as UserTransactionType, g as WalletAssetMergeType, X as WalletAssetType, Y as WalletChainType, W as WalletConfigType, Z as WalletNFTType, _ as WalletPanelProps, $ as WalletReceiveMessageType, c as WalletType, u as useMatchWalletAssetsProps } from '../types-DzVVzMYU.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tanstack/react-query/src/types';
|
|
@@ -400,4 +400,4 @@ type useMatchWalletAssetsProps = {
|
|
|
400
400
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N,
|
|
403
|
+
export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N, OtherLoginMethodType as O, PopoverPositionType as P, UserPopoverProps as Q, RecommendLoginMethodType as R, UserTransactionNextPageParams as S, ThemeType as T, UserChainType as U, UserTransactionRecordType as V, WalletConfigType as W, WalletAssetType as X, WalletChainType as Y, WalletNFTType as Z, WalletPanelProps as _, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, WalletAssetMergeType as g, ISocialLoginMethod as h, OverviewInfo as i, LoginMethodType as j, AnyObject as k, UserTransactionType as l, UserImportTokenType as m, UserAssetToken as n, AppConfigType as o, BindInfoType as p, BindItemType as q, BindWalletParam as r, DrawerProps as s, IEnvName as t, useMatchWalletAssetsProps as u, ILoginWalletReq as v, IconProps as w, InputProps as x, MessageType as y, MetaPageType as z };
|
|
@@ -400,4 +400,4 @@ type useMatchWalletAssetsProps = {
|
|
|
400
400
|
assetListOptions?: Partial<Omit<UseQueryOptions<UserAssetToken[]>, 'queryKey' | 'queryFn'>>;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N,
|
|
403
|
+
export type { WalletReceiveMessageType as $, Address as A, ButtonProps as B, CEXType as C, DeepPartial as D, EmailModalProps as E, ModalProps as F, PohItemType as G, Hash as H, IMatchEvents as I, PohZkpassParams as J, PopoverProps as K, LocaleType as L, ModalWithHeaderProps as M, UIProps as N, OtherLoginMethodType as O, PopoverPositionType as P, UserPopoverProps as Q, RecommendLoginMethodType as R, UserTransactionNextPageParams as S, ThemeType as T, UserChainType as U, UserTransactionRecordType as V, WalletConfigType as W, WalletAssetType as X, WalletChainType as Y, WalletNFTType as Z, WalletPanelProps as _, IEnvConfigType as a, LoginBoxProps as b, WalletType as c, PopoverTypeType as d, LoginPanelProps as e, LoginModalProps as f, WalletAssetMergeType as g, ISocialLoginMethod as h, OverviewInfo as i, LoginMethodType as j, AnyObject as k, UserTransactionType as l, UserImportTokenType as m, UserAssetToken as n, AppConfigType as o, BindInfoType as p, BindItemType as q, BindWalletParam as r, DrawerProps as s, IEnvName as t, useMatchWalletAssetsProps as u, ILoginWalletReq as v, IconProps as w, InputProps as x, MessageType as y, MetaPageType as z };
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
1
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-Cou96DpL.mjs';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-C9F6f2iz.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-DzVVzMYU.mjs';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-
|
|
2
|
-
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-
|
|
1
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BcEreCxd.js';
|
|
2
|
+
export { A as AlphaAvatar, D as Drawer, e as HashPanel, M as ModalDrawer, R as Radio, S as Switch } from '../index-BMsj8hJv.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-DzVVzMYU.js';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
|
7
7
|
import 'viem';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
useMatchChain,
|
|
3
|
+
useMatchWallet,
|
|
4
|
+
useMatchWalletAssets,
|
|
5
|
+
useModal,
|
|
6
|
+
useMatchWalletAssetList
|
|
7
|
+
} from "@matchain/matchid-sdk-react/hooks";
|
|
2
8
|
import {Button} from "@matchain/matchid-sdk-react/ui";
|
|
3
|
-
import {WalletAsset, TokenDetail,TransactionList} from "@matchain/matchid-sdk-react/components";
|
|
9
|
+
import {WalletAsset, TokenDetail, TransactionList} from "@matchain/matchid-sdk-react/components";
|
|
4
10
|
import ButtonGroup from "@/components/ButtonGroup";
|
|
5
11
|
import {WalletAssetMergeType} from "@matchain/matchid-sdk-react/types";
|
|
6
12
|
|
|
@@ -15,9 +21,25 @@ export default function MatchWallet() {
|
|
|
15
21
|
})
|
|
16
22
|
}
|
|
17
23
|
}
|
|
24
|
+
const walletAssets = useMatchWalletAssets()
|
|
25
|
+
const matchWalletAssetList = useMatchWalletAssetList({
|
|
26
|
+
list: walletAssets.mergedAssets
|
|
27
|
+
})
|
|
28
|
+
const balance = matchWalletAssetList.list.reduce((pre, cur) => {
|
|
29
|
+
return pre + (cur.value || 0)
|
|
30
|
+
}, 0)
|
|
31
|
+
|
|
18
32
|
return (
|
|
19
33
|
<div className={"mt-[50px]"}>
|
|
20
34
|
<ButtonGroup title={"CustomWalletUI"}></ButtonGroup>
|
|
35
|
+
<div className={`flex gap-[10px] break-all`}>
|
|
36
|
+
<span>matchWalletAssetList.isFetched:{matchWalletAssetList.isFetched.toString()}</span>
|
|
37
|
+
<span>walletAssets.assetListQuery.isFetched:{walletAssets.assetListQuery.isFetched.toString()}</span>
|
|
38
|
+
<span>walletAssets.importTokenQuery.isFetched:{walletAssets.importTokenQuery.isFetched.toString()}</span>
|
|
39
|
+
<span>matchWalletAssetList.nativeBalanceQuery.isFetched:{matchWalletAssetList.nativeBalanceQuery.isFetched.toString()}</span>
|
|
40
|
+
<span>matchWalletAssetList.erc20BalanceQuery.isFetched:{matchWalletAssetList.erc20BalanceQuery.isFetched.toString()}</span>
|
|
41
|
+
<span>balance:{balance}</span>
|
|
42
|
+
</div>
|
|
21
43
|
<ButtonGroup>
|
|
22
44
|
<Button size={"sm"} onClick={chain.showChangeNetwork}>{chain.chain?.id}:{chain.chain?.name}</Button>
|
|
23
45
|
<Button size={"sm"} onClick={wallet.showReceiveModal}>ShowReceive</Button>
|