Socket
Socket
Sign inDemoInstall

@web3-onboard/wagmi

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/wagmi - npm Package Compare versions

Comparing version 2.0.0-wagmi.1 to 2.0.0-wagmi.2

1

dist/index.d.ts
import type { Config, ConnectReturnType, Connector, CreateConnectorFn } from '@wagmi/core';
import type { WagmiInitOptions, WagmiModuleAPI } from './types';
export * from '@wagmi/core';
export type { Config, ConnectReturnType, Connector, CreateConnectorFn, WagmiInitOptions, WagmiModuleAPI };
declare function wagmiInit(initOptions: WagmiInitOptions): WagmiModuleAPI;
export default wagmiInit;

@@ -8,2 +8,3 @@ import { createConfig, createConnector } from '@wagmi/core';

import { ProviderRpcErrorCode } from '@web3-onboard/common';
export * from '@wagmi/core';
const wagmiConnectorFn = {};

@@ -10,0 +11,0 @@ const transports = {};

2

package.json
{
"name": "@web3-onboard/wagmi",
"version": "2.0.0-wagmi.1",
"version": "2.0.0-wagmi.2",
"description": "Module to configure, connect and return web3-onboard wallets as wagmi wallets and wagmi-config to be used with wagmi-core methods",

@@ -5,0 +5,0 @@ "keywords": [

@@ -48,5 +48,9 @@ # @web3-onboard/wagmi

const sendTransaction = async provider => {
// current primary wallet - as multiple wallets can connect this value is the currently active
const [currentPrimaryWallet] = onboard.state.get().wallets
const wagmiConfig = onboard.state.get().wagmiConfig
const result = await wagmiSendTransaction(wagmiConfig, {
to: toAddress,
// desired connector to send txn from
account: currentPrimaryWallet.accounts[0],
value: parseEther('0.001')

@@ -53,0 +57,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc