@wagmi/vue 0.3.4 → 0.4.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/esm/composables/useConnect.js.map +1 -1
- package/dist/esm/composables/useConnection.js +17 -0
- package/dist/esm/composables/useConnection.js.map +1 -0
- package/dist/esm/composables/{useAccountEffect.js → useConnectionEffect.js} +5 -5
- package/dist/esm/composables/useConnectionEffect.js.map +1 -0
- package/dist/esm/composables/useConnectorClient.js +2 -2
- package/dist/esm/composables/useConnectorClient.js.map +1 -1
- package/dist/esm/composables/useDisconnect.js.map +1 -1
- package/dist/esm/composables/useSwitchChain.js.map +1 -1
- package/dist/esm/composables/{useSwitchAccount.js → useSwitchConnection.js} +7 -5
- package/dist/esm/composables/useSwitchConnection.js.map +1 -0
- package/dist/esm/exports/index.js +10 -4
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/nuxt/module.js +6 -3
- package/dist/esm/nuxt/module.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/composables/useConnect.d.ts +1 -0
- package/dist/types/composables/useConnect.d.ts.map +1 -1
- package/dist/types/composables/useConnection.d.ts +8 -0
- package/dist/types/composables/useConnection.d.ts.map +1 -0
- package/dist/types/composables/useConnectionEffect.d.ts +15 -0
- package/dist/types/composables/useConnectionEffect.d.ts.map +1 -0
- package/dist/types/composables/useDisconnect.d.ts +1 -0
- package/dist/types/composables/useDisconnect.d.ts.map +1 -1
- package/dist/types/composables/useSwitchChain.d.ts +1 -0
- package/dist/types/composables/useSwitchChain.d.ts.map +1 -1
- package/dist/types/composables/useSwitchConnection.d.ts +22 -0
- package/dist/types/composables/useSwitchConnection.d.ts.map +1 -0
- package/dist/types/exports/index.d.ts +20 -4
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/nuxt/module.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -8
- package/src/composables/useConnect.ts +1 -0
- package/src/composables/useConnection.ts +39 -0
- package/src/composables/{useAccountEffect.ts → useConnectionEffect.ts} +8 -6
- package/src/composables/useConnectorClient.ts +2 -2
- package/src/composables/useDisconnect.ts +1 -0
- package/src/composables/useSwitchChain.ts +1 -0
- package/src/composables/{useSwitchAccount.ts → useSwitchConnection.ts} +28 -21
- package/src/exports/index.ts +42 -18
- package/src/nuxt/module.ts +6 -3
- package/src/version.ts +1 -1
- package/actions/experimental/package.json +0 -5
- package/dist/esm/composables/useAccount.js +0 -17
- package/dist/esm/composables/useAccount.js.map +0 -1
- package/dist/esm/composables/useAccountEffect.js.map +0 -1
- package/dist/esm/composables/useSwitchAccount.js.map +0 -1
- package/dist/esm/exports/actions/experimental.js +0 -7
- package/dist/esm/exports/actions/experimental.js.map +0 -1
- package/dist/types/composables/useAccount.d.ts +0 -8
- package/dist/types/composables/useAccount.d.ts.map +0 -1
- package/dist/types/composables/useAccountEffect.d.ts +0 -15
- package/dist/types/composables/useAccountEffect.d.ts.map +0 -1
- package/dist/types/composables/useSwitchAccount.d.ts +0 -17
- package/dist/types/composables/useSwitchAccount.d.ts.map +0 -1
- package/dist/types/exports/actions/experimental.d.ts +0 -2
- package/dist/types/exports/actions/experimental.d.ts.map +0 -1
- package/src/composables/useAccount.ts +0 -37
- package/src/exports/actions/experimental.ts +0 -7
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.4.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -9,6 +9,7 @@ export type UseConnectParameters<config extends Config = Config, context = unkno
|
|
|
9
9
|
export type UseConnectReturnType<config extends Config = Config, context = unknown> = Compute<UseMutationReturnType<ConnectData<config, config['connectors'][number], boolean>, ConnectErrorType, ConnectVariables<config, config['connectors'][number], boolean>, context> & {
|
|
10
10
|
connect: ConnectMutate<config, context>;
|
|
11
11
|
connectAsync: ConnectMutateAsync<config, context>;
|
|
12
|
+
/** @deprecated use `useConnectors` instead */
|
|
12
13
|
connectors: Compute<GetConnectorsReturnType> | config['connectors'];
|
|
13
14
|
}>;
|
|
14
15
|
/** https://wagmi.sh/vue/api/composables/useConnect */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnect.d.ts","sourceRoot":"","sources":["../../../src/composables/useConnect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,mBAAmB,CAAA;AAI1B,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,OAAO,CACT,eAAe,CAAC,MAAM,CAAC,GAAG;IACxB,QAAQ,CAAC,EACL,qBAAqB,CACnB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC1D,gBAAgB,EAChB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC/D,OAAO,CACR,GACD,SAAS,CAAA;CACd,CACF,CAAA;AAED,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,OAAO,CACT,qBAAqB,CACnB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CA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IACxB,QAAQ,CAAC,EACL,qBAAqB,CACnB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC1D,gBAAgB,EAChB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC/D,OAAO,CACR,GACD,SAAS,CAAA;CACd,CACF,CAAA;AAED,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,OAAO,CACT,qBAAqB,CACnB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC1D,gBAAgB,EAChB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAC/D,OAAO,CACR,GAAG;IACF,OAAO,EAAE,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACvC,YAAY,EAAE,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjD,8CAA8C;IAC9C,UAAU,EAAE,OAAO,CAAC,uBAAuB,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;CACpE,CACF,CAAA;AAED,sDAAsD;AACtD,wBAAgB,UAAU,CACxB,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,GAAG,OAAO,EAEjB,UAAU,GAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAM,GACrD,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BvC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Config, type GetConnectionReturnType, type ResolvedRegister } from '@wagmi/core';
|
|
2
|
+
import { type ToRefs } from 'vue';
|
|
3
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
4
|
+
export type UseConnectionParameters<config extends Config = Config> = ConfigParameter<config>;
|
|
5
|
+
export type UseConnectionReturnType<config extends Config = Config> = ToRefs<GetConnectionReturnType<config>>;
|
|
6
|
+
/** https://wagmi.sh/vue/api/composables/useConnection */
|
|
7
|
+
export declare function useConnection<config extends Config = ResolvedRegister['config']>(parameters?: UseConnectionParameters<config>): UseConnectionReturnType<config>;
|
|
8
|
+
//# sourceMappingURL=useConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnection.d.ts","sourceRoot":"","sources":["../../../src/composables/useConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,uBAAuB,EAE5B,KAAK,gBAAgB,EAEtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAsC,KAAK,MAAM,EAAU,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAI7D,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAChE,eAAe,CAAC,MAAM,CAAC,CAAA;AAEzB,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CAC1E,uBAAuB,CAAC,MAAM,CAAC,CAChC,CAAA;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAC3B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAElD,UAAU,GAAE,uBAAuB,CAAC,MAAM,CAAM,GAC/C,uBAAuB,CAAC,MAAM,CAAC,CAajC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type GetConnectionReturnType } from '@wagmi/core';
|
|
2
|
+
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
4
|
+
import type { DeepMaybeRef } from '../types/ref.js';
|
|
5
|
+
export type UseConnectionEffectParameters = Compute<DeepMaybeRef<{
|
|
6
|
+
onConnect?(data: Compute<Pick<Extract<GetConnectionReturnType, {
|
|
7
|
+
status: 'connected';
|
|
8
|
+
}>, 'address' | 'addresses' | 'chain' | 'chainId' | 'connector'> & {
|
|
9
|
+
isReconnected: boolean;
|
|
10
|
+
}>): void;
|
|
11
|
+
onDisconnect?(): void;
|
|
12
|
+
} & ConfigParameter>>;
|
|
13
|
+
/** https://wagmi.sh/vue/api/composables/useConnectionEffect */
|
|
14
|
+
export declare function useConnectionEffect(parameters?: UseConnectionEffectParameters): void;
|
|
15
|
+
//# sourceMappingURL=useConnectionEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectionEffect.d.ts","sourceRoot":"","sources":["../../../src/composables/useConnectionEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAmB,MAAM,aAAa,CAAA;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAInD,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,YAAY,CACV;IACE,SAAS,CAAC,CACR,IAAI,EAAE,OAAO,CACX,IAAI,CACF,OAAO,CAAC,uBAAuB,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,CAAC,EACzD,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAC5D,GAAG;QACF,aAAa,EAAE,OAAO,CAAA;KACvB,CACF,GACA,IAAI,CAAA;IACP,YAAY,CAAC,IAAI,IAAI,CAAA;CACtB,GAAG,eAAe,CACpB,CACF,CAAA;AAED,+DAA+D;AAC/D,wBAAgB,mBAAmB,CACjC,UAAU,GAAE,6BAAkC,QAsC/C"}
|
|
@@ -8,6 +8,7 @@ export type UseDisconnectParameters<context = unknown> = Compute<ConfigParameter
|
|
|
8
8
|
mutation?: UseMutationParameters<DisconnectData, DisconnectErrorType, DisconnectVariables, context> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
export type UseDisconnectReturnType<context = unknown> = Compute<UseMutationReturnType<DisconnectData, DisconnectErrorType, DisconnectVariables, context> & {
|
|
11
|
+
/** @deprecated use `useConnections` instead */
|
|
11
12
|
connectors: Ref<readonly Connector[]>;
|
|
12
13
|
disconnect: DisconnectMutate<context>;
|
|
13
14
|
disconnectAsync: DisconnectMutateAsync<context>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisconnect.d.ts","sourceRoot":"","sources":["../../../src/composables/useDisconnect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,mBAAmB,CAAA;AAI1B,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,OAAO,CAC9D,eAAe,GAAG;IAChB,QAAQ,CAAC,EACL,qBAAqB,CACnB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACR,GACD,SAAS,CAAA;CACd,CACF,CAAA;AAED,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,OAAO,CAC9D,qBAAqB,CACnB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACR,GAAG;IACF,UAAU,EAAE,GAAG,CAAC,SAAS,SAAS,EAAE,CAAC,CAAA;IACrC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACrC,eAAe,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;CAChD,CACF,CAAA;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,OAAO,GAAG,OAAO,EAC7C,UAAU,GAAE,uBAAuB,CAAC,OAAO,CAAM,GAChD,uBAAuB,CAAC,OAAO,CAAC,CAoBlC"}
|
|
1
|
+
{"version":3,"file":"useDisconnect.d.ts","sourceRoot":"","sources":["../../../src/composables/useDisconnect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAEzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,mBAAmB,CAAA;AAI1B,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,OAAO,CAC9D,eAAe,GAAG;IAChB,QAAQ,CAAC,EACL,qBAAqB,CACnB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACR,GACD,SAAS,CAAA;CACd,CACF,CAAA;AAED,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,OAAO,CAC9D,qBAAqB,CACnB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACR,GAAG;IACF,+CAA+C;IAC/C,UAAU,EAAE,GAAG,CAAC,SAAS,SAAS,EAAE,CAAC,CAAA;IACrC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACrC,eAAe,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;CAChD,CACF,CAAA;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,OAAO,GAAG,OAAO,EAC7C,UAAU,GAAE,uBAAuB,CAAC,OAAO,CAAM,GAChD,uBAAuB,CAAC,OAAO,CAAC,CAoBlC"}
|
|
@@ -8,6 +8,7 @@ export type UseSwitchChainParameters<config extends Config = Config, context = u
|
|
|
8
8
|
mutation?: UseMutationParameters<SwitchChainData<config, config['chains'][number]['id']>, SwitchChainErrorType, SwitchChainVariables<config, config['chains'][number]['id']>, context> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
export type UseSwitchChainReturnType<config extends Config = Config, context = unknown> = Compute<UseMutationReturnType<SwitchChainData<config, config['chains'][number]['id']>, SwitchChainErrorType, SwitchChainVariables<config, config['chains'][number]['id']>, context> & {
|
|
11
|
+
/** @deprecated use `useChains` instead */
|
|
11
12
|
chains: Ref<config['chains']>;
|
|
12
13
|
switchChain: SwitchChainMutate<config, context>;
|
|
13
14
|
switchChainAsync: SwitchChainMutateAsync<config, context>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwitchChain.d.ts","sourceRoot":"","sources":["../../../src/composables/useSwitchChain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAE1B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wB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I,CAAC,CAAC,EACvD,oBAAoB,EACpB,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,EAC5D,OAAO,CACR,GAAG;IACF,0CAA0C;IAC1C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC7B,WAAW,EAAE,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/C,gBAAgB,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC1D,CACF,CAAA;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAC5B,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,GAAG,OAAO,EAEjB,UAAU,GAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAM,GACzD,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAkB3C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Config, Connector, ResolvedRegister, SwitchConnectionErrorType } from '@wagmi/core';
|
|
2
|
+
import type { Compute } from '@wagmi/core/internal';
|
|
3
|
+
import { type SwitchConnectionData, type SwitchConnectionMutate, type SwitchConnectionMutateAsync, type SwitchConnectionVariables } from '@wagmi/core/query';
|
|
4
|
+
import { type Ref } from 'vue';
|
|
5
|
+
import type { ConfigParameter } from '../types/properties.js';
|
|
6
|
+
import type { UseMutationParameters, UseMutationReturnType } from '../utils/query.js';
|
|
7
|
+
export type UseSwitchConnectionParameters<config extends Config = Config, context = unknown> = Compute<ConfigParameter<config> & {
|
|
8
|
+
mutation?: UseMutationParameters<SwitchConnectionData<config>, SwitchConnectionErrorType, SwitchConnectionVariables, context> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export type UseSwitchConnectionReturnType<config extends Config = Config, context = unknown> = Compute<UseMutationReturnType<SwitchConnectionData<config>, SwitchConnectionErrorType, SwitchConnectionVariables, context> & {
|
|
11
|
+
/** @deprecated use `useConnections` instead */
|
|
12
|
+
connectors: Ref<readonly Connector[]>;
|
|
13
|
+
/** @deprecated use `switchConnection` instead */
|
|
14
|
+
switchAccount: SwitchConnectionMutate<config, context>;
|
|
15
|
+
/** @deprecated use `switchConnectionAsync` instead */
|
|
16
|
+
switchAccountAsync: SwitchConnectionMutateAsync<config, context>;
|
|
17
|
+
switchConnection: SwitchConnectionMutate<config, context>;
|
|
18
|
+
switchConnectionAsync: SwitchConnectionMutateAsync<config, context>;
|
|
19
|
+
}>;
|
|
20
|
+
/** https://wagmi.sh/vue/api/composables/useSwitchConnection */
|
|
21
|
+
export declare function useSwitchConnection<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: UseSwitchConnectionParameters<config, context>): UseSwitchConnectionReturnType<config, context>;
|
|
22
|
+
//# sourceMappingURL=useSwitchConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSwitchConnection.d.ts","sourceRoot":"","sources":["../../../src/composables/useSwitchConnection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAE/B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,mBAAmB,CAAA;AAI1B,MAAM,MAAM,6BAA6B,CACvC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,OAAO,CACT,eAAe,CAAC,MAAM,CAAC,GAAG;IACxB,QAAQ,CAAC,EACL,qBAAqB,CACnB,oBAAoB,CAAC,MAAM,CAAC,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,OAAO,CACR,GACD,SAAS,CAAA;CACd,CACF,CAAA;AAED,MAAM,MAAM,6BAA6B,CACvC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,IACf,OAAO,CACT,qBAAqB,CACnB,oBAAoB,CAAC,MAAM,CAAC,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,OAAO,CACR,GAAG;IACF,+CAA+C;IAC/C,UAAU,EAAE,GAAG,CAAC,SAAS,SAAS,EAAE,CAAC,CAAA;IACrC,iDAAiD;IACjD,aAAa,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,sDAAsD;IACtD,kBAAkB,EAAE,2BAA2B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChE,gBAAgB,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzD,qBAAqB,EAAE,2BAA2B,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpE,CACF,CAAA;AAED,+DAA+D;AAC/D,wBAAgB,mBAAmB,CACjC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,GAAG,OAAO,EAEjB,UAAU,GAAE,6BAA6B,CAAC,MAAM,EAAE,OAAO,CAAM,GAC9D,6BAA6B,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBhD"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { configKey, WagmiPlugin, type WagmiPluginOptions } from '../plugin.js';
|
|
2
2
|
export { BaseError, type BaseErrorType } from '../errors/base.js';
|
|
3
3
|
export { WagmiInjectionContextError, type WagmiInjectionContextErrorType, WagmiPluginNotFoundError, type WagmiPluginNotFoundErrorType, } from '../errors/plugin.js';
|
|
4
|
-
export { type UseAccountParameters, type UseAccountReturnType, useAccount, } from '../composables/useAccount.js';
|
|
5
|
-
export { type UseAccountEffectParameters, useAccountEffect, } from '../composables/useAccountEffect.js';
|
|
6
4
|
export { type UseBalanceParameters, type UseBalanceReturnType, useBalance, } from '../composables/useBalance.js';
|
|
7
5
|
export { type UseBlockNumberParameters, type UseBlockNumberReturnType, useBlockNumber, } from '../composables/useBlockNumber.js';
|
|
8
6
|
export { type UseBytecodeParameters, type UseBytecodeReturnType, useBytecode, } from '../composables/useBytecode.js';
|
|
@@ -11,6 +9,18 @@ export { type UseChainsParameters, type UseChainsReturnType, useChains, } from '
|
|
|
11
9
|
export { type UseClientParameters, type UseClientReturnType, useClient, } from '../composables/useClient.js';
|
|
12
10
|
export { type UseConfigParameters, type UseConfigReturnType, useConfig, } from '../composables/useConfig.js';
|
|
13
11
|
export { type UseConnectParameters, type UseConnectReturnType, useConnect, } from '../composables/useConnect.js';
|
|
12
|
+
export {
|
|
13
|
+
/** @deprecated use `UseConnectionParameters` instead */
|
|
14
|
+
type UseConnectionParameters as UseAccountParameters, type UseConnectionParameters,
|
|
15
|
+
/** @deprecated use `UseConnectionReturnType` instead */
|
|
16
|
+
type UseConnectionReturnType as UseAccountReturnType, type UseConnectionReturnType,
|
|
17
|
+
/** @deprecated use `useConnection` instead */
|
|
18
|
+
useConnection as useAccount, useConnection, } from '../composables/useConnection.js';
|
|
19
|
+
export {
|
|
20
|
+
/** @deprecated use `UseConnectionEffectParameters` instead */
|
|
21
|
+
type UseConnectionEffectParameters as UseAccountEffectParameters, type UseConnectionEffectParameters,
|
|
22
|
+
/** @deprecated use `useConnectionEffect` instead */
|
|
23
|
+
useConnectionEffect as useAccountEffect, useConnectionEffect, } from '../composables/useConnectionEffect.js';
|
|
14
24
|
export { type UseConnectionsParameters, type UseConnectionsReturnType, useConnections, } from '../composables/useConnections.js';
|
|
15
25
|
export { type UseConnectorClientParameters, type UseConnectorClientReturnType, useConnectorClient, } from '../composables/useConnectorClient.js';
|
|
16
26
|
export { type UseConnectorsParameters, type UseConnectorsReturnType, useConnectors, } from '../composables/useConnectors.js';
|
|
@@ -25,14 +35,20 @@ export { type UseSendTransactionParameters, type UseSendTransactionReturnType, u
|
|
|
25
35
|
export { type UseSignMessageParameters, type UseSignMessageReturnType, useSignMessage, } from '../composables/useSignMessage.js';
|
|
26
36
|
export { type UseSignTypedDataParameters, type UseSignTypedDataReturnType, useSignTypedData, } from '../composables/useSignTypedData.js';
|
|
27
37
|
export { type UseSimulateContractParameters, type UseSimulateContractReturnType, useSimulateContract, } from '../composables/useSimulateContract.js';
|
|
28
|
-
export { type UseSwitchAccountParameters, type UseSwitchAccountReturnType, useSwitchAccount, } from '../composables/useSwitchAccount.js';
|
|
29
38
|
export { type UseSwitchChainParameters, type UseSwitchChainReturnType, useSwitchChain, } from '../composables/useSwitchChain.js';
|
|
39
|
+
export {
|
|
40
|
+
/** @deprecated use `UseSwitchConnectionParameters` instead */
|
|
41
|
+
type UseSwitchConnectionParameters as UseSwitchAccountParameters, type UseSwitchConnectionParameters,
|
|
42
|
+
/** @deprecated use `UseSwitchConnectionReturnType` instead */
|
|
43
|
+
type UseSwitchConnectionReturnType as UseSwitchAccountReturnType, type UseSwitchConnectionReturnType,
|
|
44
|
+
/** @deprecated use `useSwitchConnection` instead */
|
|
45
|
+
useSwitchConnection as useSwitchAccount, useSwitchConnection, } from '../composables/useSwitchConnection.js';
|
|
30
46
|
export { type UseTransactionParameters, type UseTransactionReturnType, useTransaction, } from '../composables/useTransaction.js';
|
|
31
47
|
export { type UseTransactionReceiptParameters, type UseTransactionReceiptReturnType, useTransactionReceipt, } from '../composables/useTransactionReceipt.js';
|
|
32
48
|
export { type UseWaitForTransactionReceiptParameters, type UseWaitForTransactionReceiptReturnType, useWaitForTransactionReceipt, } from '../composables/useWaitForTransactionReceipt.js';
|
|
33
49
|
export { type UseWatchBlockNumberParameters, type UseWatchBlockNumberReturnType, useWatchBlockNumber, } from '../composables/useWatchBlockNumber.js';
|
|
34
50
|
export { type UseWatchContractEventParameters, type UseWatchContractEventReturnType, useWatchContractEvent, } from '../composables/useWatchContractEvent.js';
|
|
35
51
|
export { type UseWriteContractParameters, type UseWriteContractReturnType, useWriteContract, } from '../composables/useWriteContract.js';
|
|
36
|
-
export { ChainNotConfiguredError, type ChainNotConfiguredErrorType, type Config, type Connection, type Connector, ConnectorAccountNotFoundError, type ConnectorAccountNotFoundErrorType, ConnectorAlreadyConnectedError, type ConnectorAlreadyConnectedErrorType, ConnectorChainMismatchError, type ConnectorChainMismatchErrorType, type ConnectorEventMap, ConnectorNotFoundError, type ConnectorNotFoundErrorType, ConnectorUnavailableReconnectingError, type ConnectorUnavailableReconnectingErrorType, type CreateConfigParameters, type CreateConnectorFn, type CreateStorageParameters, cookieStorage, cookieToInitialState, createConfig, createConnector, createStorage, custom, deepEqual, deserialize, fallback, http, injected, mock, noopStorage,
|
|
52
|
+
export { ChainNotConfiguredError, type ChainNotConfiguredErrorType, type Config, type Connection, type Connector, ConnectorAccountNotFoundError, type ConnectorAccountNotFoundErrorType, ConnectorAlreadyConnectedError, type ConnectorAlreadyConnectedErrorType, ConnectorChainMismatchError, type ConnectorChainMismatchErrorType, type ConnectorEventMap, ConnectorNotFoundError, type ConnectorNotFoundErrorType, ConnectorUnavailableReconnectingError, type ConnectorUnavailableReconnectingErrorType, type CreateConfigParameters, type CreateConnectorFn, type CreateStorageParameters, cookieStorage, cookieToInitialState, createConfig, createConnector, createStorage, custom, deepEqual, deserialize, fallback, http, injected, mock, noopStorage, type PartializedState, ProviderNotFoundError, type ProviderNotFoundErrorType, parseCookie, type Register, type ResolvedRegister, type State, type Storage, SwitchChainNotSupportedError, type SwitchChainNotSupportedErrorType, serialize, unstable_connector, webSocket, } from '@wagmi/core';
|
|
37
53
|
export { version } from '../version.js';
|
|
38
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAM9E,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,EACL,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,wBAAwB,EACxB,KAAK,4BAA4B,GAClC,MAAM,qBAAqB,CAAA;AAM5B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAM9E,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,EACL,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,wBAAwB,EACxB,KAAK,4BAA4B,GAClC,MAAM,qBAAqB,CAAA;AAM5B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,GACf,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,WAAW,GACZ,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,SAAS,GACV,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,m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["../../../src/nuxt/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAI9C,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/nuxt/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAI9C,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEnC,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAwDnD,CAAA"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.4.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wagmi/vue",
|
|
3
3
|
"description": "Vue Composables for Ethereum",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
"types": "./dist/types/exports/actions.d.ts",
|
|
36
36
|
"default": "./dist/esm/exports/actions.js"
|
|
37
37
|
},
|
|
38
|
-
"./actions/experimental": {
|
|
39
|
-
"types": "./dist/types/exports/actions/experimental.d.ts",
|
|
40
|
-
"default": "./dist/esm/exports/actions/experimental.js"
|
|
41
|
-
},
|
|
42
38
|
"./chains": {
|
|
43
39
|
"types": "./dist/types/exports/chains.d.ts",
|
|
44
40
|
"default": "./dist/esm/exports/chains.js"
|
|
@@ -86,7 +82,7 @@
|
|
|
86
82
|
"peerDependencies": {
|
|
87
83
|
"@tanstack/vue-query": ">=5.0.0",
|
|
88
84
|
"nuxt": ">=3.0.0 || >=4.0.0",
|
|
89
|
-
"typescript": ">=5.
|
|
85
|
+
"typescript": ">=5.7.3",
|
|
90
86
|
"viem": "2.x",
|
|
91
87
|
"vue": ">=3"
|
|
92
88
|
},
|
|
@@ -99,8 +95,8 @@
|
|
|
99
95
|
}
|
|
100
96
|
},
|
|
101
97
|
"dependencies": {
|
|
102
|
-
"@wagmi/connectors": "
|
|
103
|
-
"@wagmi/core": "
|
|
98
|
+
"@wagmi/connectors": "7.0.1",
|
|
99
|
+
"@wagmi/core": "3.0.0"
|
|
104
100
|
},
|
|
105
101
|
"contributors": [
|
|
106
102
|
"awkweb.eth <t@wevm.dev>",
|
|
@@ -51,6 +51,7 @@ export type UseConnectReturnType<
|
|
|
51
51
|
> & {
|
|
52
52
|
connect: ConnectMutate<config, context>
|
|
53
53
|
connectAsync: ConnectMutateAsync<config, context>
|
|
54
|
+
/** @deprecated use `useConnectors` instead */
|
|
54
55
|
connectors: Compute<GetConnectorsReturnType> | config['connectors']
|
|
55
56
|
}
|
|
56
57
|
>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type Config,
|
|
3
|
+
type GetConnectionReturnType,
|
|
4
|
+
getConnection,
|
|
5
|
+
type ResolvedRegister,
|
|
6
|
+
watchConnection,
|
|
7
|
+
} from '@wagmi/core'
|
|
8
|
+
import { onScopeDispose, reactive, readonly, type ToRefs, toRefs } from 'vue'
|
|
9
|
+
|
|
10
|
+
import type { ConfigParameter } from '../types/properties.js'
|
|
11
|
+
import { updateState } from '../utils/updateState.js'
|
|
12
|
+
import { useConfig } from './useConfig.js'
|
|
13
|
+
|
|
14
|
+
export type UseConnectionParameters<config extends Config = Config> =
|
|
15
|
+
ConfigParameter<config>
|
|
16
|
+
|
|
17
|
+
export type UseConnectionReturnType<config extends Config = Config> = ToRefs<
|
|
18
|
+
GetConnectionReturnType<config>
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
/** https://wagmi.sh/vue/api/composables/useConnection */
|
|
22
|
+
export function useConnection<
|
|
23
|
+
config extends Config = ResolvedRegister['config'],
|
|
24
|
+
>(
|
|
25
|
+
parameters: UseConnectionParameters<config> = {},
|
|
26
|
+
): UseConnectionReturnType<config> {
|
|
27
|
+
const config = useConfig(parameters)
|
|
28
|
+
|
|
29
|
+
const connection = reactive(getConnection(config))
|
|
30
|
+
|
|
31
|
+
const unsubscribe = watchConnection(config, {
|
|
32
|
+
onChange(data) {
|
|
33
|
+
updateState(connection, data)
|
|
34
|
+
},
|
|
35
|
+
})
|
|
36
|
+
onScopeDispose(() => unsubscribe())
|
|
37
|
+
|
|
38
|
+
return toRefs(readonly(connection)) as UseConnectionReturnType<config>
|
|
39
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type GetConnectionReturnType, watchConnection } from '@wagmi/core'
|
|
2
2
|
import type { Compute } from '@wagmi/core/internal'
|
|
3
3
|
import { watchEffect } from 'vue'
|
|
4
4
|
|
|
@@ -7,13 +7,13 @@ import type { DeepMaybeRef } from '../types/ref.js'
|
|
|
7
7
|
import { deepUnref } from '../utils/cloneDeep.js'
|
|
8
8
|
import { useConfig } from './useConfig.js'
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type UseConnectionEffectParameters = Compute<
|
|
11
11
|
DeepMaybeRef<
|
|
12
12
|
{
|
|
13
13
|
onConnect?(
|
|
14
14
|
data: Compute<
|
|
15
15
|
Pick<
|
|
16
|
-
Extract<
|
|
16
|
+
Extract<GetConnectionReturnType, { status: 'connected' }>,
|
|
17
17
|
'address' | 'addresses' | 'chain' | 'chainId' | 'connector'
|
|
18
18
|
> & {
|
|
19
19
|
isReconnected: boolean
|
|
@@ -25,14 +25,16 @@ export type UseAccountEffectParameters = Compute<
|
|
|
25
25
|
>
|
|
26
26
|
>
|
|
27
27
|
|
|
28
|
-
/** https://wagmi.sh/vue/api/composables/
|
|
29
|
-
export function
|
|
28
|
+
/** https://wagmi.sh/vue/api/composables/useConnectionEffect */
|
|
29
|
+
export function useConnectionEffect(
|
|
30
|
+
parameters: UseConnectionEffectParameters = {},
|
|
31
|
+
) {
|
|
30
32
|
const config = useConfig(parameters)
|
|
31
33
|
|
|
32
34
|
watchEffect((onCleanup) => {
|
|
33
35
|
const { onConnect, onDisconnect } = deepUnref(parameters)
|
|
34
36
|
|
|
35
|
-
const unwatch =
|
|
37
|
+
const unwatch = watchConnection(config, {
|
|
36
38
|
onChange(data, prevData) {
|
|
37
39
|
if (
|
|
38
40
|
(prevData.status === 'reconnecting' ||
|
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
type UseQueryReturnType,
|
|
24
24
|
useQuery,
|
|
25
25
|
} from '../utils/query.js'
|
|
26
|
-
import { useAccount } from './useAccount.js'
|
|
27
26
|
import { useChainId } from './useChainId.js'
|
|
28
27
|
import { useConfig } from './useConfig.js'
|
|
28
|
+
import { useConnection } from './useConnection.js'
|
|
29
29
|
|
|
30
30
|
export type UseConnectorClientParameters<
|
|
31
31
|
config extends Config = Config,
|
|
@@ -79,7 +79,7 @@ export function useConnectorClient<
|
|
|
79
79
|
address,
|
|
80
80
|
connector: accountConnector,
|
|
81
81
|
status,
|
|
82
|
-
} =
|
|
82
|
+
} = useConnection({ config })
|
|
83
83
|
const configChainId = useChainId({ config })
|
|
84
84
|
|
|
85
85
|
const queryOptions = computed(() => {
|
|
@@ -38,6 +38,7 @@ export type UseDisconnectReturnType<context = unknown> = Compute<
|
|
|
38
38
|
DisconnectVariables,
|
|
39
39
|
context
|
|
40
40
|
> & {
|
|
41
|
+
/** @deprecated use `useConnections` instead */
|
|
41
42
|
connectors: Ref<readonly Connector[]>
|
|
42
43
|
disconnect: DisconnectMutate<context>
|
|
43
44
|
disconnectAsync: DisconnectMutateAsync<context>
|
|
@@ -48,6 +48,7 @@ export type UseSwitchChainReturnType<
|
|
|
48
48
|
SwitchChainVariables<config, config['chains'][number]['id']>,
|
|
49
49
|
context
|
|
50
50
|
> & {
|
|
51
|
+
/** @deprecated use `useChains` instead */
|
|
51
52
|
chains: Ref<config['chains']>
|
|
52
53
|
switchChain: SwitchChainMutate<config, context>
|
|
53
54
|
switchChainAsync: SwitchChainMutateAsync<config, context>
|
|
@@ -3,15 +3,15 @@ import type {
|
|
|
3
3
|
Config,
|
|
4
4
|
Connector,
|
|
5
5
|
ResolvedRegister,
|
|
6
|
-
|
|
6
|
+
SwitchConnectionErrorType,
|
|
7
7
|
} from '@wagmi/core'
|
|
8
8
|
import type { Compute } from '@wagmi/core/internal'
|
|
9
9
|
import {
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
type
|
|
13
|
-
type
|
|
14
|
-
|
|
10
|
+
type SwitchConnectionData,
|
|
11
|
+
type SwitchConnectionMutate,
|
|
12
|
+
type SwitchConnectionMutateAsync,
|
|
13
|
+
type SwitchConnectionVariables,
|
|
14
|
+
switchConnectionMutationOptions,
|
|
15
15
|
} from '@wagmi/core/query'
|
|
16
16
|
import { computed, type Ref } from 'vue'
|
|
17
17
|
|
|
@@ -23,51 +23,56 @@ import type {
|
|
|
23
23
|
import { useConfig } from './useConfig.js'
|
|
24
24
|
import { useConnections } from './useConnections.js'
|
|
25
25
|
|
|
26
|
-
export type
|
|
26
|
+
export type UseSwitchConnectionParameters<
|
|
27
27
|
config extends Config = Config,
|
|
28
28
|
context = unknown,
|
|
29
29
|
> = Compute<
|
|
30
30
|
ConfigParameter<config> & {
|
|
31
31
|
mutation?:
|
|
32
32
|
| UseMutationParameters<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
SwitchConnectionData<config>,
|
|
34
|
+
SwitchConnectionErrorType,
|
|
35
|
+
SwitchConnectionVariables,
|
|
36
36
|
context
|
|
37
37
|
>
|
|
38
38
|
| undefined
|
|
39
39
|
}
|
|
40
40
|
>
|
|
41
41
|
|
|
42
|
-
export type
|
|
42
|
+
export type UseSwitchConnectionReturnType<
|
|
43
43
|
config extends Config = Config,
|
|
44
44
|
context = unknown,
|
|
45
45
|
> = Compute<
|
|
46
46
|
UseMutationReturnType<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
SwitchConnectionData<config>,
|
|
48
|
+
SwitchConnectionErrorType,
|
|
49
|
+
SwitchConnectionVariables,
|
|
50
50
|
context
|
|
51
51
|
> & {
|
|
52
|
+
/** @deprecated use `useConnections` instead */
|
|
52
53
|
connectors: Ref<readonly Connector[]>
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
/** @deprecated use `switchConnection` instead */
|
|
55
|
+
switchAccount: SwitchConnectionMutate<config, context>
|
|
56
|
+
/** @deprecated use `switchConnectionAsync` instead */
|
|
57
|
+
switchAccountAsync: SwitchConnectionMutateAsync<config, context>
|
|
58
|
+
switchConnection: SwitchConnectionMutate<config, context>
|
|
59
|
+
switchConnectionAsync: SwitchConnectionMutateAsync<config, context>
|
|
55
60
|
}
|
|
56
61
|
>
|
|
57
62
|
|
|
58
|
-
/** https://wagmi.sh/vue/api/composables/
|
|
59
|
-
export function
|
|
63
|
+
/** https://wagmi.sh/vue/api/composables/useSwitchConnection */
|
|
64
|
+
export function useSwitchConnection<
|
|
60
65
|
config extends Config = ResolvedRegister['config'],
|
|
61
66
|
context = unknown,
|
|
62
67
|
>(
|
|
63
|
-
parameters:
|
|
64
|
-
):
|
|
68
|
+
parameters: UseSwitchConnectionParameters<config, context> = {},
|
|
69
|
+
): UseSwitchConnectionReturnType<config, context> {
|
|
65
70
|
const { mutation } = parameters
|
|
66
71
|
|
|
67
72
|
const config = useConfig(parameters)
|
|
68
73
|
const connections = useConnections({ config })
|
|
69
74
|
|
|
70
|
-
const mutationOptions =
|
|
75
|
+
const mutationOptions = switchConnectionMutationOptions(config)
|
|
71
76
|
const { mutate, mutateAsync, ...result } = useMutation({
|
|
72
77
|
...mutation,
|
|
73
78
|
...mutationOptions,
|
|
@@ -80,5 +85,7 @@ export function useSwitchAccount<
|
|
|
80
85
|
),
|
|
81
86
|
switchAccount: mutate,
|
|
82
87
|
switchAccountAsync: mutateAsync,
|
|
88
|
+
switchConnection: mutate,
|
|
89
|
+
switchConnectionAsync: mutateAsync,
|
|
83
90
|
}
|
|
84
91
|
}
|
package/src/exports/index.ts
CHANGED
|
@@ -22,17 +22,6 @@ export {
|
|
|
22
22
|
// Composables
|
|
23
23
|
////////////////////////////////////////////////////////////////////////////////
|
|
24
24
|
|
|
25
|
-
export {
|
|
26
|
-
type UseAccountParameters,
|
|
27
|
-
type UseAccountReturnType,
|
|
28
|
-
useAccount,
|
|
29
|
-
} from '../composables/useAccount.js'
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
type UseAccountEffectParameters,
|
|
33
|
-
useAccountEffect,
|
|
34
|
-
} from '../composables/useAccountEffect.js'
|
|
35
|
-
|
|
36
25
|
export {
|
|
37
26
|
type UseBalanceParameters,
|
|
38
27
|
type UseBalanceReturnType,
|
|
@@ -56,31 +45,58 @@ export {
|
|
|
56
45
|
type UseChainIdReturnType,
|
|
57
46
|
useChainId,
|
|
58
47
|
} from '../composables/useChainId.js'
|
|
48
|
+
|
|
59
49
|
export {
|
|
60
50
|
type UseChainsParameters,
|
|
61
51
|
type UseChainsReturnType,
|
|
62
52
|
useChains,
|
|
63
53
|
} from '../composables/useChains.js'
|
|
54
|
+
|
|
64
55
|
export {
|
|
65
56
|
type UseClientParameters,
|
|
66
57
|
type UseClientReturnType,
|
|
67
58
|
useClient,
|
|
68
59
|
} from '../composables/useClient.js'
|
|
60
|
+
|
|
69
61
|
export {
|
|
70
62
|
type UseConfigParameters,
|
|
71
63
|
type UseConfigReturnType,
|
|
72
64
|
useConfig,
|
|
73
65
|
} from '../composables/useConfig.js'
|
|
66
|
+
|
|
74
67
|
export {
|
|
75
68
|
type UseConnectParameters,
|
|
76
69
|
type UseConnectReturnType,
|
|
77
70
|
useConnect,
|
|
78
71
|
} from '../composables/useConnect.js'
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
/** @deprecated use `UseConnectionParameters` instead */
|
|
75
|
+
type UseConnectionParameters as UseAccountParameters,
|
|
76
|
+
type UseConnectionParameters,
|
|
77
|
+
/** @deprecated use `UseConnectionReturnType` instead */
|
|
78
|
+
type UseConnectionReturnType as UseAccountReturnType,
|
|
79
|
+
type UseConnectionReturnType,
|
|
80
|
+
/** @deprecated use `useConnection` instead */
|
|
81
|
+
useConnection as useAccount,
|
|
82
|
+
useConnection,
|
|
83
|
+
} from '../composables/useConnection.js'
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
/** @deprecated use `UseConnectionEffectParameters` instead */
|
|
87
|
+
type UseConnectionEffectParameters as UseAccountEffectParameters,
|
|
88
|
+
type UseConnectionEffectParameters,
|
|
89
|
+
/** @deprecated use `useConnectionEffect` instead */
|
|
90
|
+
useConnectionEffect as useAccountEffect,
|
|
91
|
+
useConnectionEffect,
|
|
92
|
+
} from '../composables/useConnectionEffect.js'
|
|
93
|
+
|
|
79
94
|
export {
|
|
80
95
|
type UseConnectionsParameters,
|
|
81
96
|
type UseConnectionsReturnType,
|
|
82
97
|
useConnections,
|
|
83
98
|
} from '../composables/useConnections.js'
|
|
99
|
+
|
|
84
100
|
export {
|
|
85
101
|
type UseConnectorClientParameters,
|
|
86
102
|
type UseConnectorClientReturnType,
|
|
@@ -159,18 +175,24 @@ export {
|
|
|
159
175
|
useSimulateContract,
|
|
160
176
|
} from '../composables/useSimulateContract.js'
|
|
161
177
|
|
|
162
|
-
export {
|
|
163
|
-
type UseSwitchAccountParameters,
|
|
164
|
-
type UseSwitchAccountReturnType,
|
|
165
|
-
useSwitchAccount,
|
|
166
|
-
} from '../composables/useSwitchAccount.js'
|
|
167
|
-
|
|
168
178
|
export {
|
|
169
179
|
type UseSwitchChainParameters,
|
|
170
180
|
type UseSwitchChainReturnType,
|
|
171
181
|
useSwitchChain,
|
|
172
182
|
} from '../composables/useSwitchChain.js'
|
|
173
183
|
|
|
184
|
+
export {
|
|
185
|
+
/** @deprecated use `UseSwitchConnectionParameters` instead */
|
|
186
|
+
type UseSwitchConnectionParameters as UseSwitchAccountParameters,
|
|
187
|
+
type UseSwitchConnectionParameters,
|
|
188
|
+
/** @deprecated use `UseSwitchConnectionReturnType` instead */
|
|
189
|
+
type UseSwitchConnectionReturnType as UseSwitchAccountReturnType,
|
|
190
|
+
type UseSwitchConnectionReturnType,
|
|
191
|
+
/** @deprecated use `useSwitchConnection` instead */
|
|
192
|
+
useSwitchConnection as useSwitchAccount,
|
|
193
|
+
useSwitchConnection,
|
|
194
|
+
} from '../composables/useSwitchConnection.js'
|
|
195
|
+
|
|
174
196
|
export {
|
|
175
197
|
type UseTransactionParameters,
|
|
176
198
|
type UseTransactionReturnType,
|
|
@@ -182,16 +204,19 @@ export {
|
|
|
182
204
|
type UseTransactionReceiptReturnType,
|
|
183
205
|
useTransactionReceipt,
|
|
184
206
|
} from '../composables/useTransactionReceipt.js'
|
|
207
|
+
|
|
185
208
|
export {
|
|
186
209
|
type UseWaitForTransactionReceiptParameters,
|
|
187
210
|
type UseWaitForTransactionReceiptReturnType,
|
|
188
211
|
useWaitForTransactionReceipt,
|
|
189
212
|
} from '../composables/useWaitForTransactionReceipt.js'
|
|
213
|
+
|
|
190
214
|
export {
|
|
191
215
|
type UseWatchBlockNumberParameters,
|
|
192
216
|
type UseWatchBlockNumberReturnType,
|
|
193
217
|
useWatchBlockNumber,
|
|
194
218
|
} from '../composables/useWatchBlockNumber.js'
|
|
219
|
+
|
|
195
220
|
export {
|
|
196
221
|
type UseWatchContractEventParameters,
|
|
197
222
|
type UseWatchContractEventReturnType,
|
|
@@ -247,7 +272,6 @@ export {
|
|
|
247
272
|
injected,
|
|
248
273
|
mock,
|
|
249
274
|
noopStorage,
|
|
250
|
-
normalizeChainId,
|
|
251
275
|
type PartializedState,
|
|
252
276
|
ProviderNotFoundError,
|
|
253
277
|
type ProviderNotFoundErrorType,
|