{"_id":"@b2network/b2-wallet-connector","_rev":"6-0f001989e5d20e81d84f557d4f82bcd6","name":"@b2network/b2-wallet-connector","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"@b2network/b2-wallet-connector","version":"0.0.1","type":"module","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c","format":"prettier --write \"src/**/*.(js|ts)\"","lint":"eslint src --ext .js,.ts","lint:fix":"eslint src --fix --ext .js,.ts","test":"jest --config jest.config.js"},"repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"license":"MIT","devDependencies":{"@rollup/plugin-image":"^3.0.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","@wagmi/connectors":"^3.1.10","esbuild":"^0.19.10","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","jest":"^29.7.0","prettier":"^3.1.1","rollup":"^4.9.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.0","rollup-plugin-terser":"^7.0.2","ts-jest":"^29.1.1","typescript":"^5.3.3","viem":"1.19.13","wagmi":"1.4.11"},"_id":"@b2network/b2-wallet-connector@0.0.1","gitHead":"f26d8997e6ff3ee3393014e18cd3bdcb28309c22","description":"","bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"homepage":"https://github.com/b2network/b2-wallet-connector#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-91A94iIOsRZHcw4OA6Ze0+M6hQfP8l7aNrv8X20RGvoi2UP5McnmjwnEKv97dS4b1HrLiG1vyFaQlq9G5ViMeA==","shasum":"625ef98c5e0ac5cc0296ad4374d81295d29e5d14","tarball":"https://registry.npmjs.org/@b2network/b2-wallet-connector/-/b2-wallet-connector-0.0.1.tgz","fileCount":7,"unpackedSize":156699,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQGXeLtjtG4YUX0/DobjB4u5PGiMHcL/lR3UUnKqZW4AIgfigmcxowv6cmkxCQWBOv8pg1JbZlpIvLFB2wAGHU0sA="}]},"_npmUser":{"name":"b2network","email":"b2network@proton.me"},"directories":{},"maintainers":[{"name":"b2network","email":"b2network@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b2-wallet-connector_0.0.1_1702980690410_0.2594930194247149"},"_hasShrinkwrap":false},"0.0.2":{"name":"@b2network/b2-wallet-connector","version":"0.0.2","type":"module","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c","format":"prettier --write \"src/**/*.(js|ts)\"","lint":"eslint src --ext .js,.ts","lint:fix":"eslint src --fix --ext .js,.ts","test":"jest --config jest.config.js"},"repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"license":"MIT","devDependencies":{"@rollup/plugin-image":"^3.0.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","@wagmi/connectors":"^3.1.10","esbuild":"^0.19.10","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","jest":"^29.7.0","prettier":"^3.1.1","rollup":"^4.9.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.0","rollup-plugin-terser":"^7.0.2","ts-jest":"^29.1.1","typescript":"^5.3.3","viem":"1.19.13","wagmi":"1.4.11"},"_id":"@b2network/b2-wallet-connector@0.0.2","gitHead":"5719aa76e708d03893b0971d98605c6db268ac64","description":"## Getting Started","bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"homepage":"https://github.com/b2network/b2-wallet-connector#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ZXV7JhLDqsOcnTVrAFxk1U/p3OAS1DmXkCyy4iWRkd2YvlUvn7XJMaAyUVO3aJAXvMHjF40OvOcGRF4nHjFZBw==","shasum":"ec01909e35eddd2db3decdb0501b5e8c7fd91a9c","tarball":"https://registry.npmjs.org/@b2network/b2-wallet-connector/-/b2-wallet-connector-0.0.2.tgz","fileCount":7,"unpackedSize":159110,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgsFSwDDXOr2d7tYBoHkFwkDKk4fRbUJNwVzW0fKvzvAIgbyQFDqyDx7gOBuENdUX+kEhRdjrY2zPnzaGxqXDsKNw="}]},"_npmUser":{"name":"b2network","email":"b2network@proton.me"},"directories":{},"maintainers":[{"name":"b2network","email":"b2network@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b2-wallet-connector_0.0.2_1703250176112_0.5905503127893552"},"_hasShrinkwrap":false},"0.0.3":{"name":"@b2network/b2-wallet-connector","version":"0.0.3","type":"module","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c","format":"prettier --write \"src/**/*.(js|ts)\"","lint":"eslint src --ext .js,.ts","lint:fix":"eslint src --fix --ext .js,.ts","test":"jest --config jest.config.js"},"repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"license":"MIT","devDependencies":{"@rollup/plugin-image":"^3.0.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","@wagmi/connectors":"^3.1.10","esbuild":"^0.19.10","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","jest":"^29.7.0","prettier":"^3.1.1","rollup":"^4.9.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.0","rollup-plugin-terser":"^7.0.2","ts-jest":"^29.1.1","typescript":"^5.3.3","viem":"1.19.13","wagmi":"1.4.11"},"_id":"@b2network/b2-wallet-connector@0.0.3","gitHead":"6006d4ddc43eb99fe772875064b8f7d19b5eb028","description":"## Getting Started","bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"homepage":"https://github.com/b2network/b2-wallet-connector#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-RFtAx7C8UohLTWbhApAY69zAiia0Qb2tDExSQgcSn9lvYWonTE6jd2tfLxauoCGSruhDZlsRICQSQGE8G8LT9g==","shasum":"31924128d67a7727b06b0bfb12abbbf78df1cfc8","tarball":"https://registry.npmjs.org/@b2network/b2-wallet-connector/-/b2-wallet-connector-0.0.3.tgz","fileCount":7,"unpackedSize":159332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCok544PD+zmr/fyeBweHvl+g/WXALOwSxc1HsMjjmMXAIhAKm5RzhkZA+XesVYXudtGpjIfhbGPRmfLDhFr2AM+YFZ"}]},"_npmUser":{"name":"b2network","email":"b2network@proton.me"},"directories":{},"maintainers":[{"name":"b2network","email":"b2network@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b2-wallet-connector_0.0.3_1703258286611_0.9604209244179656"},"_hasShrinkwrap":false},"0.0.4":{"name":"@b2network/b2-wallet-connector","version":"0.0.4","type":"module","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c","format":"prettier --write \"src/**/*.(js|ts)\"","lint":"eslint src --ext .js,.ts","lint:fix":"eslint src --fix --ext .js,.ts","test":"jest --config jest.config.js"},"repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"license":"MIT","devDependencies":{"@rollup/plugin-image":"^3.0.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","@wagmi/connectors":"^3.1.10","esbuild":"^0.19.10","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","jest":"^29.7.0","prettier":"^3.1.1","rollup":"^4.9.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.0","rollup-plugin-terser":"^7.0.2","ts-jest":"^29.1.1","typescript":"^5.3.3","viem":"1.19.13","wagmi":"1.4.11"},"_id":"@b2network/b2-wallet-connector@0.0.4","gitHead":"582cd8234a246d15a5085de1eab3df6b60a642fd","description":"## Getting Started","bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"homepage":"https://github.com/b2network/b2-wallet-connector#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MtsLffs/gUVffwz+8toKquET8xiP0sBKT6rO/fNKacUb8SyddJHnl50LmlUUW7G+aPWb4VNFQ9O3PEAGcFDbvQ==","shasum":"de23f1f2e0aa004cbfc4df0bcd237ccc12c3a6aa","tarball":"https://registry.npmjs.org/@b2network/b2-wallet-connector/-/b2-wallet-connector-0.0.4.tgz","fileCount":7,"unpackedSize":159512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKFL2MTzQScjKW+VX0u3rqq3rbnQ1ZX8uyPC5+kT9zXQIhAIiFi6UZjPVOY9KEm2l5hMwkPHHPbOljnFrhhME9UgJy"}]},"_npmUser":{"name":"b2network","email":"b2network@proton.me"},"directories":{},"maintainers":[{"name":"b2network","email":"b2network@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b2-wallet-connector_0.0.4_1703337222972_0.5134836980115227"},"_hasShrinkwrap":false},"0.0.5":{"name":"@b2network/b2-wallet-connector","version":"0.0.5","type":"module","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c","format":"prettier --write \"src/**/*.(js|ts)\"","lint":"eslint src --ext .js,.ts","lint:fix":"eslint src --fix --ext .js,.ts","test":"jest --config jest.config.js"},"repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"license":"MIT","dependencies":{"@b2network/aa-utils":"^0.0.3","@wagmi/connectors":"^3.1.10","viem":"1.19.13","wagmi":"1.4.11"},"devDependencies":{"@rollup/plugin-image":"^3.0.3","@types/jest":"^29.5.11","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"^6.15.0","esbuild":"^0.19.10","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","jest":"^29.7.0","prettier":"^3.1.1","rollup":"^4.9.1","rollup-plugin-dts":"^6.1.0","rollup-plugin-esbuild":"^6.1.0","rollup-plugin-terser":"^7.0.2","ts-jest":"^29.1.1","typescript":"^5.3.3"},"_id":"@b2network/b2-wallet-connector@0.0.5","gitHead":"8155626ddf22108a510b76f4ca9bf489574d5cf5","description":"## Getting Started","bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"homepage":"https://github.com/b2network/b2-wallet-connector#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-LBZN9X8QlTGQzYSZtEVFiWorO8xmXjwFlD+/NoJ0ts3MgTuI2yDC7O18vtoHloYOtsW9LmpJwqks5OcoxbBmWg==","shasum":"77db423fc2331e247ea69df576a1075627abc859","tarball":"https://registry.npmjs.org/@b2network/b2-wallet-connector/-/b2-wallet-connector-0.0.5.tgz","fileCount":7,"unpackedSize":161747,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9tAMoyCfTyJwlm77t2z9pqywAa0ZIfDRZmfow9hXZNAIhAO1ZjbrpizwIV+REharZbRuubECi1uleroP9eFDJLJiu"}]},"_npmUser":{"name":"b2network","email":"b2network@proton.me"},"directories":{},"maintainers":[{"name":"b2network","email":"b2network@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b2-wallet-connector_0.0.5_1704472655534_0.5576363100038819"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-19T10:11:30.308Z","0.0.1":"2023-12-19T10:11:30.573Z","modified":"2024-01-06T06:53:29.818Z","0.0.2":"2023-12-22T13:02:56.295Z","0.0.3":"2023-12-22T15:18:06.863Z","0.0.4":"2023-12-23T13:13:43.215Z","0.0.5":"2024-01-05T16:37:35.771Z"},"maintainers":[{"email":"lance10030@163.com","name":"lance10030"},{"email":"b2network@proton.me","name":"bsquared_pat"}],"homepage":"https://github.com/b2network/b2-wallet-connector#readme","repository":{"type":"git","url":"git+https://github.com/b2network/b2-wallet-connector.git"},"bugs":{"url":"https://github.com/b2network/b2-wallet-connector/issues"},"license":"MIT","readme":"# b2-wallet-connector\n\n## Getting Started\n\n- Install the package\n\n```bash\n// with yarn\nyarn add @b2network/b2-wallet-connector\n// with npm\nnpm i @b2network/b2-wallet-connector\n```\n\n- Integrate B2 connector with rainbowkit\n\n```typescript\nimport {\n  connectorsForWallets,\n  RainbowKitProvider,\n} from \"@rainbow-me/rainbowkit\";\nimport { configureChains, createConfig, WagmiConfig } from \"wagmi\";\nimport { publicProvider } from \"wagmi/providers/public\";\n\nimport {\n  B2Connector,\n  b2test,\n  b2Wallet,\n  withB2PublicClient,\n} from \"@b2network/b2-wallet-connector\";\n\nconst { chains, publicClient } = configureChains(\n  [b2test],\n  [publicProvider()]\n);\n\nconst connectors = connectorsForWallets([\n  {\n    groupName: \"Recommended\",\n    wallets: [\n      b2Wallet(\n        new B2Connector({\n          chains,\n          options: {\n            shimDisconnect: true,\n          },\n        })\n      ),\n    ],\n  },\n]);\n\n// Pass `publicClient` to withB2PublicClient HOF\nconst wagmiConfig = createConfig({\n  autoConnect: true,\n  connectors,\n  publicClient: withB2PublicClient(publicClient),\n});\n\n\n// Now you can use the config as you use to\n```\n","readmeFilename":"README.md","description":"## Getting Started"}