From d9e6d949d0b0b5a1af300fe683dfa192a5e11d38 Mon Sep 17 00:00:00 2001 From: Paolo Guerra Date: Wed, 20 Mar 2024 17:32:14 +0100 Subject: [PATCH] chore: simplify folders structure, rename project to vevm --- package.json | 2 +- src/composables/{wagmi => }/useAccount.ts | 0 src/composables/{wagmi => }/useBalance.ts | 0 src/composables/{wagmi => }/useBlockNumber.ts | 0 .../{wagmi => }/useBlockTransactionCount.ts | 0 src/composables/{wagmi => }/useBytecode.ts | 0 src/composables/{wagmi => }/useCall.ts | 0 src/composables/{wagmi => }/useChain.ts | 0 src/composables/{wagmi => }/useChainId.ts | 0 src/composables/{wagmi => }/useClient.ts | 0 src/composables/{wagmi => }/useConnect.ts | 0 src/composables/{wagmi => }/useConnections.ts | 0 .../{wagmi => }/useConnectorClient.ts | 0 src/composables/{wagmi => }/useConnectors.ts | 0 src/composables/{wagmi => }/useDisconnect.ts | 0 src/composables/{wagmi => }/useEnsAddress.ts | 0 src/composables/{wagmi => }/useEnsAvatar.ts | 0 src/composables/{wagmi => }/useEnsResolver.ts | 0 src/composables/{wagmi => }/useEnsText.ts | 0 .../{wagmi => }/useEstimateFeesPerGas.ts | 0 src/composables/{wagmi => }/useEstimateGas.ts | 0 .../useEstimateMaxPriorityFeePerGas.ts | 0 src/composables/{wagmi => }/useFeeHistory.ts | 0 src/composables/{wagmi => }/useGasPrice.ts | 0 .../usePrepareTransactionRequest.ts | 0 .../{wagmi => }/usePublicClient.ts | 0 .../{wagmi => }/useReadContract.ts | 0 .../{wagmi => }/useReadContracts.ts | 0 src/composables/{wagmi => }/useReconnect.ts | 0 .../{wagmi => }/useSendTransaction.ts | 0 src/composables/{wagmi => }/useSignMessage.ts | 0 .../{wagmi => }/useSignTypedData.ts | 0 .../{wagmi => }/useSimulateContract.ts | 0 .../{wagmi => }/useSwitchAccount.ts | 0 src/composables/{wagmi => }/useSwitchChain.ts | 0 src/composables/{wagmi => }/useTransaction.ts | 0 .../useTransactionConfirmations.ts | 0 .../{wagmi => }/useTransactionCount.ts | 0 .../{wagmi => }/useTransactionReceipt.ts | 0 .../{wagmi => }/useVerifyMessage.ts | 0 .../{wagmi => }/useVerifyTypedData.ts | 0 src/composables/{wagmi => }/useWagmiConfig.ts | 2 +- .../useWaitForTransactionReceipt.ts | 0 .../{wagmi => }/useWalletClient.ts | 0 .../{wagmi => }/useWatchBlockNumber.ts | 0 src/composables/{wagmi => }/useWatchBlocks.ts | 0 .../{wagmi => }/useWatchContractEvent.ts | 0 .../useWatchPendingTransactions.ts | 0 .../{wagmi => }/useWriteContract.ts | 0 src/index.ts | 96 +++++++++---------- tests/composables/wagmi/useAccount.test.ts | 2 +- 51 files changed, 51 insertions(+), 51 deletions(-) rename src/composables/{wagmi => }/useAccount.ts (100%) rename src/composables/{wagmi => }/useBalance.ts (100%) rename src/composables/{wagmi => }/useBlockNumber.ts (100%) rename src/composables/{wagmi => }/useBlockTransactionCount.ts (100%) rename src/composables/{wagmi => }/useBytecode.ts (100%) rename src/composables/{wagmi => }/useCall.ts (100%) rename src/composables/{wagmi => }/useChain.ts (100%) rename src/composables/{wagmi => }/useChainId.ts (100%) rename src/composables/{wagmi => }/useClient.ts (100%) rename src/composables/{wagmi => }/useConnect.ts (100%) rename src/composables/{wagmi => }/useConnections.ts (100%) rename src/composables/{wagmi => }/useConnectorClient.ts (100%) rename src/composables/{wagmi => }/useConnectors.ts (100%) rename src/composables/{wagmi => }/useDisconnect.ts (100%) rename src/composables/{wagmi => }/useEnsAddress.ts (100%) rename src/composables/{wagmi => }/useEnsAvatar.ts (100%) rename src/composables/{wagmi => }/useEnsResolver.ts (100%) rename src/composables/{wagmi => }/useEnsText.ts (100%) rename src/composables/{wagmi => }/useEstimateFeesPerGas.ts (100%) rename src/composables/{wagmi => }/useEstimateGas.ts (100%) rename src/composables/{wagmi => }/useEstimateMaxPriorityFeePerGas.ts (100%) rename src/composables/{wagmi => }/useFeeHistory.ts (100%) rename src/composables/{wagmi => }/useGasPrice.ts (100%) rename src/composables/{wagmi => }/usePrepareTransactionRequest.ts (100%) rename src/composables/{wagmi => }/usePublicClient.ts (100%) rename src/composables/{wagmi => }/useReadContract.ts (100%) rename src/composables/{wagmi => }/useReadContracts.ts (100%) rename src/composables/{wagmi => }/useReconnect.ts (100%) rename src/composables/{wagmi => }/useSendTransaction.ts (100%) rename src/composables/{wagmi => }/useSignMessage.ts (100%) rename src/composables/{wagmi => }/useSignTypedData.ts (100%) rename src/composables/{wagmi => }/useSimulateContract.ts (100%) rename src/composables/{wagmi => }/useSwitchAccount.ts (100%) rename src/composables/{wagmi => }/useSwitchChain.ts (100%) rename src/composables/{wagmi => }/useTransaction.ts (100%) rename src/composables/{wagmi => }/useTransactionConfirmations.ts (100%) rename src/composables/{wagmi => }/useTransactionCount.ts (100%) rename src/composables/{wagmi => }/useTransactionReceipt.ts (100%) rename src/composables/{wagmi => }/useVerifyMessage.ts (100%) rename src/composables/{wagmi => }/useVerifyTypedData.ts (100%) rename src/composables/{wagmi => }/useWagmiConfig.ts (87%) rename src/composables/{wagmi => }/useWaitForTransactionReceipt.ts (100%) rename src/composables/{wagmi => }/useWalletClient.ts (100%) rename src/composables/{wagmi => }/useWatchBlockNumber.ts (100%) rename src/composables/{wagmi => }/useWatchBlocks.ts (100%) rename src/composables/{wagmi => }/useWatchContractEvent.ts (100%) rename src/composables/{wagmi => }/useWatchPendingTransactions.ts (100%) rename src/composables/{wagmi => }/useWriteContract.ts (100%) diff --git a/package.json b/package.json index 703d7ca..0b80117 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@carrot-kpi/wagmi-composables", + "name": "vevm", "version": "0.0.0", "type": "module", "main": "./dist/index.js", diff --git a/src/composables/wagmi/useAccount.ts b/src/composables/useAccount.ts similarity index 100% rename from src/composables/wagmi/useAccount.ts rename to src/composables/useAccount.ts diff --git a/src/composables/wagmi/useBalance.ts b/src/composables/useBalance.ts similarity index 100% rename from src/composables/wagmi/useBalance.ts rename to src/composables/useBalance.ts diff --git a/src/composables/wagmi/useBlockNumber.ts b/src/composables/useBlockNumber.ts similarity index 100% rename from src/composables/wagmi/useBlockNumber.ts rename to src/composables/useBlockNumber.ts diff --git a/src/composables/wagmi/useBlockTransactionCount.ts b/src/composables/useBlockTransactionCount.ts similarity index 100% rename from src/composables/wagmi/useBlockTransactionCount.ts rename to src/composables/useBlockTransactionCount.ts diff --git a/src/composables/wagmi/useBytecode.ts b/src/composables/useBytecode.ts similarity index 100% rename from src/composables/wagmi/useBytecode.ts rename to src/composables/useBytecode.ts diff --git a/src/composables/wagmi/useCall.ts b/src/composables/useCall.ts similarity index 100% rename from src/composables/wagmi/useCall.ts rename to src/composables/useCall.ts diff --git a/src/composables/wagmi/useChain.ts b/src/composables/useChain.ts similarity index 100% rename from src/composables/wagmi/useChain.ts rename to src/composables/useChain.ts diff --git a/src/composables/wagmi/useChainId.ts b/src/composables/useChainId.ts similarity index 100% rename from src/composables/wagmi/useChainId.ts rename to src/composables/useChainId.ts diff --git a/src/composables/wagmi/useClient.ts b/src/composables/useClient.ts similarity index 100% rename from src/composables/wagmi/useClient.ts rename to src/composables/useClient.ts diff --git a/src/composables/wagmi/useConnect.ts b/src/composables/useConnect.ts similarity index 100% rename from src/composables/wagmi/useConnect.ts rename to src/composables/useConnect.ts diff --git a/src/composables/wagmi/useConnections.ts b/src/composables/useConnections.ts similarity index 100% rename from src/composables/wagmi/useConnections.ts rename to src/composables/useConnections.ts diff --git a/src/composables/wagmi/useConnectorClient.ts b/src/composables/useConnectorClient.ts similarity index 100% rename from src/composables/wagmi/useConnectorClient.ts rename to src/composables/useConnectorClient.ts diff --git a/src/composables/wagmi/useConnectors.ts b/src/composables/useConnectors.ts similarity index 100% rename from src/composables/wagmi/useConnectors.ts rename to src/composables/useConnectors.ts diff --git a/src/composables/wagmi/useDisconnect.ts b/src/composables/useDisconnect.ts similarity index 100% rename from src/composables/wagmi/useDisconnect.ts rename to src/composables/useDisconnect.ts diff --git a/src/composables/wagmi/useEnsAddress.ts b/src/composables/useEnsAddress.ts similarity index 100% rename from src/composables/wagmi/useEnsAddress.ts rename to src/composables/useEnsAddress.ts diff --git a/src/composables/wagmi/useEnsAvatar.ts b/src/composables/useEnsAvatar.ts similarity index 100% rename from src/composables/wagmi/useEnsAvatar.ts rename to src/composables/useEnsAvatar.ts diff --git a/src/composables/wagmi/useEnsResolver.ts b/src/composables/useEnsResolver.ts similarity index 100% rename from src/composables/wagmi/useEnsResolver.ts rename to src/composables/useEnsResolver.ts diff --git a/src/composables/wagmi/useEnsText.ts b/src/composables/useEnsText.ts similarity index 100% rename from src/composables/wagmi/useEnsText.ts rename to src/composables/useEnsText.ts diff --git a/src/composables/wagmi/useEstimateFeesPerGas.ts b/src/composables/useEstimateFeesPerGas.ts similarity index 100% rename from src/composables/wagmi/useEstimateFeesPerGas.ts rename to src/composables/useEstimateFeesPerGas.ts diff --git a/src/composables/wagmi/useEstimateGas.ts b/src/composables/useEstimateGas.ts similarity index 100% rename from src/composables/wagmi/useEstimateGas.ts rename to src/composables/useEstimateGas.ts diff --git a/src/composables/wagmi/useEstimateMaxPriorityFeePerGas.ts b/src/composables/useEstimateMaxPriorityFeePerGas.ts similarity index 100% rename from src/composables/wagmi/useEstimateMaxPriorityFeePerGas.ts rename to src/composables/useEstimateMaxPriorityFeePerGas.ts diff --git a/src/composables/wagmi/useFeeHistory.ts b/src/composables/useFeeHistory.ts similarity index 100% rename from src/composables/wagmi/useFeeHistory.ts rename to src/composables/useFeeHistory.ts diff --git a/src/composables/wagmi/useGasPrice.ts b/src/composables/useGasPrice.ts similarity index 100% rename from src/composables/wagmi/useGasPrice.ts rename to src/composables/useGasPrice.ts diff --git a/src/composables/wagmi/usePrepareTransactionRequest.ts b/src/composables/usePrepareTransactionRequest.ts similarity index 100% rename from src/composables/wagmi/usePrepareTransactionRequest.ts rename to src/composables/usePrepareTransactionRequest.ts diff --git a/src/composables/wagmi/usePublicClient.ts b/src/composables/usePublicClient.ts similarity index 100% rename from src/composables/wagmi/usePublicClient.ts rename to src/composables/usePublicClient.ts diff --git a/src/composables/wagmi/useReadContract.ts b/src/composables/useReadContract.ts similarity index 100% rename from src/composables/wagmi/useReadContract.ts rename to src/composables/useReadContract.ts diff --git a/src/composables/wagmi/useReadContracts.ts b/src/composables/useReadContracts.ts similarity index 100% rename from src/composables/wagmi/useReadContracts.ts rename to src/composables/useReadContracts.ts diff --git a/src/composables/wagmi/useReconnect.ts b/src/composables/useReconnect.ts similarity index 100% rename from src/composables/wagmi/useReconnect.ts rename to src/composables/useReconnect.ts diff --git a/src/composables/wagmi/useSendTransaction.ts b/src/composables/useSendTransaction.ts similarity index 100% rename from src/composables/wagmi/useSendTransaction.ts rename to src/composables/useSendTransaction.ts diff --git a/src/composables/wagmi/useSignMessage.ts b/src/composables/useSignMessage.ts similarity index 100% rename from src/composables/wagmi/useSignMessage.ts rename to src/composables/useSignMessage.ts diff --git a/src/composables/wagmi/useSignTypedData.ts b/src/composables/useSignTypedData.ts similarity index 100% rename from src/composables/wagmi/useSignTypedData.ts rename to src/composables/useSignTypedData.ts diff --git a/src/composables/wagmi/useSimulateContract.ts b/src/composables/useSimulateContract.ts similarity index 100% rename from src/composables/wagmi/useSimulateContract.ts rename to src/composables/useSimulateContract.ts diff --git a/src/composables/wagmi/useSwitchAccount.ts b/src/composables/useSwitchAccount.ts similarity index 100% rename from src/composables/wagmi/useSwitchAccount.ts rename to src/composables/useSwitchAccount.ts diff --git a/src/composables/wagmi/useSwitchChain.ts b/src/composables/useSwitchChain.ts similarity index 100% rename from src/composables/wagmi/useSwitchChain.ts rename to src/composables/useSwitchChain.ts diff --git a/src/composables/wagmi/useTransaction.ts b/src/composables/useTransaction.ts similarity index 100% rename from src/composables/wagmi/useTransaction.ts rename to src/composables/useTransaction.ts diff --git a/src/composables/wagmi/useTransactionConfirmations.ts b/src/composables/useTransactionConfirmations.ts similarity index 100% rename from src/composables/wagmi/useTransactionConfirmations.ts rename to src/composables/useTransactionConfirmations.ts diff --git a/src/composables/wagmi/useTransactionCount.ts b/src/composables/useTransactionCount.ts similarity index 100% rename from src/composables/wagmi/useTransactionCount.ts rename to src/composables/useTransactionCount.ts diff --git a/src/composables/wagmi/useTransactionReceipt.ts b/src/composables/useTransactionReceipt.ts similarity index 100% rename from src/composables/wagmi/useTransactionReceipt.ts rename to src/composables/useTransactionReceipt.ts diff --git a/src/composables/wagmi/useVerifyMessage.ts b/src/composables/useVerifyMessage.ts similarity index 100% rename from src/composables/wagmi/useVerifyMessage.ts rename to src/composables/useVerifyMessage.ts diff --git a/src/composables/wagmi/useVerifyTypedData.ts b/src/composables/useVerifyTypedData.ts similarity index 100% rename from src/composables/wagmi/useVerifyTypedData.ts rename to src/composables/useVerifyTypedData.ts diff --git a/src/composables/wagmi/useWagmiConfig.ts b/src/composables/useWagmiConfig.ts similarity index 87% rename from src/composables/wagmi/useWagmiConfig.ts rename to src/composables/useWagmiConfig.ts index e8aa442..d620087 100644 --- a/src/composables/wagmi/useWagmiConfig.ts +++ b/src/composables/useWagmiConfig.ts @@ -1,5 +1,5 @@ import { inject } from "vue"; -import { WAGMI_CONFIG_KEY, ensureInjectionContext } from "../../commons"; +import { WAGMI_CONFIG_KEY, ensureInjectionContext } from "../commons"; import type { Config } from "@wagmi/core"; export type UseWagmiConfigReturnType = config; diff --git a/src/composables/wagmi/useWaitForTransactionReceipt.ts b/src/composables/useWaitForTransactionReceipt.ts similarity index 100% rename from src/composables/wagmi/useWaitForTransactionReceipt.ts rename to src/composables/useWaitForTransactionReceipt.ts diff --git a/src/composables/wagmi/useWalletClient.ts b/src/composables/useWalletClient.ts similarity index 100% rename from src/composables/wagmi/useWalletClient.ts rename to src/composables/useWalletClient.ts diff --git a/src/composables/wagmi/useWatchBlockNumber.ts b/src/composables/useWatchBlockNumber.ts similarity index 100% rename from src/composables/wagmi/useWatchBlockNumber.ts rename to src/composables/useWatchBlockNumber.ts diff --git a/src/composables/wagmi/useWatchBlocks.ts b/src/composables/useWatchBlocks.ts similarity index 100% rename from src/composables/wagmi/useWatchBlocks.ts rename to src/composables/useWatchBlocks.ts diff --git a/src/composables/wagmi/useWatchContractEvent.ts b/src/composables/useWatchContractEvent.ts similarity index 100% rename from src/composables/wagmi/useWatchContractEvent.ts rename to src/composables/useWatchContractEvent.ts diff --git a/src/composables/wagmi/useWatchPendingTransactions.ts b/src/composables/useWatchPendingTransactions.ts similarity index 100% rename from src/composables/wagmi/useWatchPendingTransactions.ts rename to src/composables/useWatchPendingTransactions.ts diff --git a/src/composables/wagmi/useWriteContract.ts b/src/composables/useWriteContract.ts similarity index 100% rename from src/composables/wagmi/useWriteContract.ts rename to src/composables/useWriteContract.ts diff --git a/src/index.ts b/src/index.ts index 9b0520f..114eddc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,50 +1,50 @@ -export * from "./composables/wagmi/useAccount"; -export * from "./composables/wagmi/useBalance"; -export * from "./composables/wagmi/useBlockNumber"; -export * from "./composables/wagmi/useBlockTransactionCount"; -export * from "./composables/wagmi/useBytecode"; -export * from "./composables/wagmi/useCall"; -export * from "./composables/wagmi/useChain"; -export * from "./composables/wagmi/useChainId"; -export * from "./composables/wagmi/useClient"; -export * from "./composables/wagmi/useConnect"; -export * from "./composables/wagmi/useConnections"; -export * from "./composables/wagmi/useConnectorClient"; -export * from "./composables/wagmi/useConnectors"; -export * from "./composables/wagmi/useDisconnect"; -export * from "./composables/wagmi/useEnsAddress"; -export * from "./composables/wagmi/useEnsAvatar"; -export * from "./composables/wagmi/useEnsResolver"; -export * from "./composables/wagmi/useEnsText"; -export * from "./composables/wagmi/useEstimateFeesPerGas"; -export * from "./composables/wagmi/useEstimateGas"; -export * from "./composables/wagmi/useEstimateMaxPriorityFeePerGas"; -export * from "./composables/wagmi/useFeeHistory"; -export * from "./composables/wagmi/useGasPrice"; -export * from "./composables/wagmi/usePrepareTransactionRequest"; -export * from "./composables/wagmi/usePublicClient"; -export * from "./composables/wagmi/useReadContract"; -export * from "./composables/wagmi/useReadContracts"; -export * from "./composables/wagmi/useReconnect"; -export * from "./composables/wagmi/useSendTransaction"; -export * from "./composables/wagmi/useSignMessage"; -export * from "./composables/wagmi/useSignTypedData"; -export * from "./composables/wagmi/useSimulateContract"; -export * from "./composables/wagmi/useSwitchAccount"; -export * from "./composables/wagmi/useSwitchChain"; -export * from "./composables/wagmi/useTransaction"; -export * from "./composables/wagmi/useTransactionConfirmations"; -export * from "./composables/wagmi/useTransactionCount"; -export * from "./composables/wagmi/useTransactionReceipt"; -export * from "./composables/wagmi/useVerifyMessage"; -export * from "./composables/wagmi/useVerifyTypedData"; -export * from "./composables/wagmi/useWagmiConfig"; -export * from "./composables/wagmi/useWaitForTransactionReceipt"; -export * from "./composables/wagmi/useWalletClient"; -export * from "./composables/wagmi/useWatchBlockNumber"; -export * from "./composables/wagmi/useWatchBlocks"; -export * from "./composables/wagmi/useWatchContractEvent"; -export * from "./composables/wagmi/useWatchPendingTransactions"; -export * from "./composables/wagmi/useWriteContract"; +export * from "./composables/useAccount"; +export * from "./composables/useBalance"; +export * from "./composables/useBlockNumber"; +export * from "./composables/useBlockTransactionCount"; +export * from "./composables/useBytecode"; +export * from "./composables/useCall"; +export * from "./composables/useChain"; +export * from "./composables/useChainId"; +export * from "./composables/useClient"; +export * from "./composables/useConnect"; +export * from "./composables/useConnections"; +export * from "./composables/useConnectorClient"; +export * from "./composables/useConnectors"; +export * from "./composables/useDisconnect"; +export * from "./composables/useEnsAddress"; +export * from "./composables/useEnsAvatar"; +export * from "./composables/useEnsResolver"; +export * from "./composables/useEnsText"; +export * from "./composables/useEstimateFeesPerGas"; +export * from "./composables/useEstimateGas"; +export * from "./composables/useEstimateMaxPriorityFeePerGas"; +export * from "./composables/useFeeHistory"; +export * from "./composables/useGasPrice"; +export * from "./composables/usePrepareTransactionRequest"; +export * from "./composables/usePublicClient"; +export * from "./composables/useReadContract"; +export * from "./composables/useReadContracts"; +export * from "./composables/useReconnect"; +export * from "./composables/useSendTransaction"; +export * from "./composables/useSignMessage"; +export * from "./composables/useSignTypedData"; +export * from "./composables/useSimulateContract"; +export * from "./composables/useSwitchAccount"; +export * from "./composables/useSwitchChain"; +export * from "./composables/useTransaction"; +export * from "./composables/useTransactionConfirmations"; +export * from "./composables/useTransactionCount"; +export * from "./composables/useTransactionReceipt"; +export * from "./composables/useVerifyMessage"; +export * from "./composables/useVerifyTypedData"; +export * from "./composables/useWagmiConfig"; +export * from "./composables/useWaitForTransactionReceipt"; +export * from "./composables/useWalletClient"; +export * from "./composables/useWatchBlockNumber"; +export * from "./composables/useWatchBlocks"; +export * from "./composables/useWatchContractEvent"; +export * from "./composables/useWatchPendingTransactions"; +export * from "./composables/useWriteContract"; export * from "./types"; diff --git a/tests/composables/wagmi/useAccount.test.ts b/tests/composables/wagmi/useAccount.test.ts index 33e2888..cc5e739 100644 --- a/tests/composables/wagmi/useAccount.test.ts +++ b/tests/composables/wagmi/useAccount.test.ts @@ -1,6 +1,6 @@ import { describe, test, expect } from "vitest"; import { DEFAULT_ACCOUNT_ADDRESSES, withHostSetup } from "../../utils"; -import { useAccount } from "../../../src/composables/wagmi/useAccount"; +import { useAccount } from "../../../src/composables/useAccount"; describe("Composables", () => { describe("Wagmi", () => {