{"_id":"@dexolacom/dexola-connector","_rev":"5-eca6191e467dfbb0b476c97a54d7ec35","name":"@dexolacom/dexola-connector","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@dexolacom/dexola-connector","version":"1.0.0","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"1e56bc90912f2d6cc116d635c63bd6b1016a8155","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-oTR8zYDPIx865NEcgEwH3eM0cy86IPCq23KYxhWMTyAAeYn6OOhG7Mti2cvUb073tQzRDgTia+fB3W0IrWRGEg==","shasum":"83b545285c51291ae21b45189c86c27874fd9d4e","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.0.tgz","fileCount":32,"unpackedSize":21342,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGuy5wQdNxcB1/vR1rMHRmRBiup/0gH6wZb0HwuJrJuAIhAL0xwQt+ja7n/Mvq9XPtNEpjNwh4u3HETBB8kcU4xK7L"}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.0_1701947328456_0.742561368659622"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dexolacom/dexola-connector","version":"1.0.1","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"1e56bc90912f2d6cc116d635c63bd6b1016a8155","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-jUlIKdStjadqJK7inFm9E/8sHzDyAchvaieXpBB9lsAWL2iziWJwzS+xdmF5/uSMy53a4Y3dgRnBtFwjrlk9UQ==","shasum":"5c0fe7b8bedc48fb955ebbf08d0ddb76c36b6a54","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.1.tgz","fileCount":32,"unpackedSize":21336,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAo9gfr4XY6AHEcX+EqgjOfLuFjekSy3ysC8DUTnjsnqAiArcn5miDwvYeUV1dbe4xwMRt7iJUhSRXorRTzX/+r6LA=="}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.1_1701952950076_0.02099287363751179"},"_hasShrinkwrap":false},"1.0.2":{"name":"@dexolacom/dexola-connector","version":"1.0.2","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"1e56bc90912f2d6cc116d635c63bd6b1016a8155","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-6t+JWhESK5KKOdnxxXhwZy9UG4NVwkblc7kHB7MToqKYValyRXR0x5GvZiE7i83pI85TZMRFRP2SKza/PXz3ug==","shasum":"ece4f73167478ea04f5f3b7b4481e7c0a077938a","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.2.tgz","fileCount":32,"unpackedSize":21459,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8A/CanbyxPumNJB9ciZkvNLwHvvwCx+C7R5rJ6cZhcAiA3NQPW3P5WrTMqGPSRsKrCMqc566pkaA56Rq/Bq4f6+Q=="}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.2_1702222843415_0.31432073822607154"},"_hasShrinkwrap":false},"1.0.3":{"name":"@dexolacom/dexola-connector","version":"1.0.3","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"1e56bc90912f2d6cc116d635c63bd6b1016a8155","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.3","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-2QXbkvhuw2evYWLI6sJnKh7DDy/EYVcfWPZ8e38Zvuk7wnYkRHEC5Fqyq8ZUkN2j91rhhD1FTJzTk3zK32MPwA==","shasum":"415c975d275063f25e110b4e6ef519997725e41c","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.3.tgz","fileCount":32,"unpackedSize":21523,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIGy1V6nxyW5b1PNKYktewilFK7qLCcwiUb7eFKJ1STQIgFPW5rVQHIXQI+V7nDKWHjHVm1AU7Gf7Ftz7H3KJyLNE="}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.3_1703319869214_0.30868341417350575"},"_hasShrinkwrap":false},"1.0.4":{"name":"@dexolacom/dexola-connector","version":"1.0.4","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"3d813dcff180a671cbbfe1cc7f1de5216297bd3f","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.4","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BhseAsxFfOgzOuB345zdwZW7rBg0asDdjV7MvFrkQD4fvQ8SidFneLttxf6vVReKbqOZSICYElFKDq8BaN9kbQ==","shasum":"5d30d00f7e4dee0d416b1982ff54a14d3832c810","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.4.tgz","fileCount":32,"unpackedSize":21528,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfrv/4RJmaXBnUEBWJbvFmQECGqnxdZjdw2ENT+127VAiEAi4yM9fBMCwiBNk30jhHor0OBPVjN/FoBb6cfoKTyseo="}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.4_1705580943992_0.1320403789548199"},"_hasShrinkwrap":false},"1.0.5":{"name":"@dexolacom/dexola-connector","version":"1.0.5","description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"npx tsc"},"repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"license":"ISC","devDependencies":{"@types/bn.js":"^5.1.5","@types/react":"^18.2.38","ts-node":"^10.9.1","typescript":"^5.3.2"},"dependencies":{"viem":"^1.19.1","wagmi":"^1.4.6"},"gitHead":"3d813dcff180a671cbbfe1cc7f1de5216297bd3f","bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"homepage":"https://github.com/dexolacom/connect-wallet#readme","_id":"@dexolacom/dexola-connector@1.0.5","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-wqojl8rQzj7E3yCqfgCOdxtPlcLksQxOG+8su3+QXzTTkzGUY7zwdYSWXsUUSG1Bin2Yw3ml6njLFTQZwluppA==","shasum":"2233e51faeef83ad397ab2cd16eca063ab82b4b2","tarball":"https://registry.npmjs.org/@dexolacom/dexola-connector/-/dexola-connector-1.0.5.tgz","fileCount":32,"unpackedSize":21556,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDybASwLxTeYBe6NjfWjPbPiP/UdMoxwelQNCs47YILggIhAMQum7mXjF06PWQhk0ezDHnUJ4XfIdnAj1xAOFjhyMBd"}]},"_npmUser":{"name":"daniilpopov","email":"daniil.popov@dexola.com"},"directories":{},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dexola-connector_1.0.5_1705581856051_0.0743752191893785"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-07T11:08:48.377Z","1.0.0":"2023-12-07T11:08:48.625Z","modified":"2024-01-18T12:44:16.431Z","1.0.1":"2023-12-07T12:42:30.267Z","1.0.2":"2023-12-10T15:40:43.581Z","1.0.3":"2023-12-23T08:24:29.405Z","1.0.4":"2024-01-18T12:29:04.151Z","1.0.5":"2024-01-18T12:44:16.219Z"},"maintainers":[{"name":"daniilpopov","email":"daniil.popov@dexola.com"},{"name":"andrew_dexola","email":"andrii.zahorulko@dexola.com"},{"name":"dexola","email":"eugene.potemsky@dexola.com"}],"description":"A fork of the original wagmi package to work on connecting web3 wallets. Additionally, it contains simplified hooks for working with the blockchain","homepage":"https://github.com/dexolacom/connect-wallet#readme","repository":{"type":"git","url":"git+https://github.com/dexolacom/connect-wallet.git"},"author":{"name":"daniilpopov"},"bugs":{"url":"https://github.com/dexolacom/connect-wallet/issues"},"license":"ISC","readme":"# @dexolacom/dexola-connector\n\nLibrary for connecting wallets with Wagmi\n\n## Install\n\n```\nnpm i @dexolacom/dexola-connector\nyarn add @dexolacom/dexola-connector\n```\n\n## Usage:\n\n### Default library import\n\n```\nimport  { defaultWagmi } from '@dexolacom/dexola-connector';  //use default library wagmi\nimport  { defaultWagmiCore } from '@dexolacom/dexola-connector'; //use default action wagmi\nimport  { defaultWagmiChains } from '@dexolacom/dexola-connector'; //use default chains wagmi\nimport  { defaultViem } from '@dexolacom/dexola-connector';  // //use default viem\n\n```\n\n### Add wallet config\n\n```\n//config.ts\n\nimport { setupWagmiConfig, defaultWagmiChains } from '@dexolacom/dexola-connector';\n\nconst { mainnet, sepolia, goerli } = defaultWagmiChains;\nconst supportedChains = [mainnet, sepolia, goerli];\n\n\n\nexport const config = setupWagmiConfig({\n  //To get the API key of Alchemy provider ---> https://www.alchemy.com/\n  alchemyApiKey: 'key',\n  //To get the projectId ---> https://cloud.walletconnect.com/\n  walletConnectProjectId: 'key',\n  supportedChains\n});\n```\n\n```\n//main.ts\n\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { defaultWagmi } from 'connect-wallet-npm';\nimport App from './App.tsx';\nimport { config } from '.config.ts';\n\nconst {WagmiConfig} = defaultWagmi; \n\nReactDOM.createRoot(document.getElementById('root')!).render(\n  <React.StrictMode>\n    <WagmiConfig config={config}>\n          <App />\n    </WagmiConfig>\n  </React.StrictMode>\n);\n```\n\n## useWrite and useTransactionHash\n\nuseWrite - hook for write data to contract.\n\nuseTransactionHash -  this hook is designed to save the transaction hash in localstore until the process is completed.\n\n```\nimport { useTransactionHash, useWrite } from 'connect-wallet-npm';\n\n    const { write, data } = useWrite({\n    address: contract_address,\n    functionName: 'withdraw',                               //name function in contract\n    abi: contractAbi,                                      //use Abi contract\n    args: ['arguments', 854, 9000002n]                   //array arguments, type of string or number or bigint, optional parameter \n   });\n\n   const transaction = useTransactionHash(data?.hash);\n    \n return (\n    <>\n      <button onClick={() => write?.()}>Write contract</button>\n    </>\n  );\n```\n### useWarite Return Value\n```\n{\n  data?: { hash: Hex }\n  error?: Error\n  isError: boolean\n  isIdle: boolean\n  isLoading: boolean\n  isSuccess: boolean\n  write: ((args?: WriteContractConfig) => void) | undefined\n  writeAsync: ((args?: WriteContractConfig) => Promise<{ hash: Hex }>) | undefined\n  reset: () => void\n  status: 'idle' | 'error' | 'loading' | 'success'\n}\n```\n\n### useTransactionHash Return Value\n\nreturn TransactionReceipt. Type for [Transaction Receipts](https://github.com/wevm/viem/blob/main/src/types/transaction.ts)","readmeFilename":"README.md"}