@matchain/matchid-sdk-react 0.1.42-alpha.10 → 0.1.42-alpha.11
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/{chunk-YG4MNAUD.mjs → chunk-HJ337PTX.mjs} +2 -2
- package/dist/{chunk-YG4MNAUD.mjs.map → chunk-HJ337PTX.mjs.map} +1 -1
- package/dist/{chunk-N53ZMW5C.mjs → chunk-PBNKRURB.mjs} +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-sOVSnYF4.d.mts → index-B2B4VJ-u.d.mts} +4 -2
- package/dist/{index-DKMrpRJC.d.ts → index-Bhnio7tx.d.ts} +4 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/example/src/abi/erc20.json +222 -0
- package/example/src/pages/Wallet.tsx +135 -9
- package/example/src/store/useLocalStore.ts +7 -1
- package/example/tsconfig.json +1 -0
- package/package.json +1 -1
- /package/dist/{chunk-N53ZMW5C.mjs.map → chunk-PBNKRURB.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CVwZEgQ0.mjs';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
|
-
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters } from 'viem';
|
|
3
|
+
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.mjs';
|
|
5
5
|
import { Hash } from 'viem/types/misc';
|
|
6
6
|
import { Abi } from 'abitype';
|
|
@@ -94,7 +94,9 @@ type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
|
|
|
94
94
|
type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
|
|
95
95
|
type DeployContractReturnType = SendTransactionReturnType;
|
|
96
96
|
type DeployContractType = <const abi extends Abi | readonly unknown[]>(parameters: DeployContractParameters<abi>) => Promise<DeployContractReturnType>;
|
|
97
|
-
type WriteContractParametersType = Omit<WriteContractParameters, 'account'
|
|
97
|
+
type WriteContractParametersType = Omit<WriteContractParameters, 'account' | 'chain'> & {
|
|
98
|
+
chain?: Chain;
|
|
99
|
+
};
|
|
98
100
|
type WriteContractReturnType = SendTransactionReturnType;
|
|
99
101
|
type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
|
|
100
102
|
interface UseWalletReturnType {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as ISocialLoginMethod, k as OverviewInfo, C as CEXType, l as LoginMethodType, I as IMatchEvents } from './types-CVwZEgQ0.js';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
|
-
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters } from 'viem';
|
|
3
|
+
import { Account, WalletClientConfig, createWalletClient, SignableMessage, Hex, TransactionSerializable, DeployContractParameters, SendTransactionParameters, WriteContractParameters, Chain } from 'viem';
|
|
4
4
|
import { C as ChainType, R as RecoveryType } from './mpc-CTbBWHld.js';
|
|
5
5
|
import { Hash } from 'viem/types/misc';
|
|
6
6
|
import { Abi } from 'abitype';
|
|
@@ -94,7 +94,9 @@ type SendTransactionParametersType = Omit<SendTransactionParameters, 'account'>;
|
|
|
94
94
|
type SendTransactionType = (transaction: SendTransactionParametersType) => Promise<SendTransactionReturnType>;
|
|
95
95
|
type DeployContractReturnType = SendTransactionReturnType;
|
|
96
96
|
type DeployContractType = <const abi extends Abi | readonly unknown[]>(parameters: DeployContractParameters<abi>) => Promise<DeployContractReturnType>;
|
|
97
|
-
type WriteContractParametersType = Omit<WriteContractParameters, 'account'
|
|
97
|
+
type WriteContractParametersType = Omit<WriteContractParameters, 'account' | 'chain'> & {
|
|
98
|
+
chain?: Chain;
|
|
99
|
+
};
|
|
98
100
|
type WriteContractReturnType = SendTransactionReturnType;
|
|
99
101
|
type WriteContractType = (params: WriteContractParametersType) => Promise<WriteContractReturnType>;
|
|
100
102
|
interface UseWalletReturnType {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CVwZEgQ0.mjs';
|
|
3
3
|
export { i as Components } from './index-CmH9iRLd.mjs';
|
|
4
|
-
export { i as Hooks } from './index-
|
|
4
|
+
export { i as Hooks } from './index-B2B4VJ-u.mjs';
|
|
5
5
|
export { i as Api } from './index-DFZpfAfc.mjs';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.mjs';
|
|
7
7
|
export { i as Types } from './index-q5XDobUF.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { I as IMatchEvents, a as IEnvConfigType, L as LocaleType, W as WalletConfigType } from './types-CVwZEgQ0.js';
|
|
3
3
|
export { i as Components } from './index-DY_ReBra.js';
|
|
4
|
-
export { i as Hooks } from './index-
|
|
4
|
+
export { i as Hooks } from './index-Bhnio7tx.js';
|
|
5
5
|
export { i as Api } from './index-Ca9nh_8s.js';
|
|
6
6
|
export { i as Chains } from './index-DXRGMAbv.js';
|
|
7
7
|
export { i as Types } from './index-BxS06a5O.js';
|