2.0.0 • Published 9 months ago

@venly/wagmi-connector v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@venly/wagmi-connector

Venly connector for wagmi

Setup (wagmi v2)

Install version 2.x of @venly/wagmi-connector

npm i @venly/wagmi-connector@latest

Configure your desired chains and Venly options

import { createConfig } from 'wagmi'
import { mainnet, sepolia } from 'wagmi/chains'
import { venly } from '@venly/wagmi-connector'

const config = createConfig({
  chains: [mainnet, sepolia],
  connectors: [
    venly({
      clientId: 'YOUR_CLIENT_ID', // https://docs.venly.io/widget/deep-dive/authentication#client-id
      environment: 'sandbox', // optional, defaults to production
    }),
  ],
  // other options...
})

Setup (wagmi v1)

Install version 1.x of @venly/wagmi-connector

npm i @venly/wagmi-connector@1

Configure your desired chains and VenlyConnector options

import { createConfig, configureChains, mainnet } from 'wagmi'
import { publicProvider } from 'wagmi/providers/public'
import { VenlyConnector } from '@venly/wagmi-connector'

const { chains, publicClient } = configureChains(
  [mainnet],
  [publicProvider()],
)

const config = createConfig({
  connectors: [
    new VenlyConnector({
      chains,
      options: {
        clientId: 'YOUR_CLIENT_ID', // https://docs.venly.io/widget/deep-dive/authentication#client-id
        environment: 'sandbox', // optional, defaults to production
      },
    }),
  ],
  publicClient,
  autoConnect: true,
})

Setup (wagmi v0)

Install version 0.x of @venly/wagmi-connector

npm i @venly/wagmi-connector@0.1

Configure your desired chains and VenlyConnector options

import { configureChains, createClient } from 'wagmi'
import { goerli, mainnet } from 'wagmi/chains'
import { publicProvider } from 'wagmi/providers/public'
import { VenlyConnector } from '@venly/wagmi-connector'

const { chains, provider } = configureChains(
  [goerli, mainnet],
  [publicProvider()],
)

export const client = createClient({
  connectors: [
    new VenlyConnector({
      chains,
      options: {
        clientId: 'YOUR_CLIENT_ID', // https://docs.venly.io/widget/deep-dive/authentication#client-id
        environment: 'sandbox', // optional, defaults to production
      },
    }),
  ],
  provider,
  autoConnect: true,
})

What is Venly Wallet

Not sure yet what Venly is all about? Be sure to check out our website: https://www.venly.io/

2.1.0-develop.1

9 months ago

2.1.0-develop.0

10 months ago

2.0.0-develop.2

1 year ago

2.0.0-develop.1

1 year ago

2.0.0

1 year ago

1.0.2

2 years ago

1.0.1-develop.1

2 years ago

1.0.1

2 years ago

1.0.1-develop.0

2 years ago

1.0.0

2 years ago

1.0.3-develop.0

2 years ago

1.0.7

2 years ago

1.0.3-develop.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.4-develop.0

2 years ago

0.1.3-develop.0

2 years ago

1.0.4-develop.1

2 years ago

1.0.6-develop.1

2 years ago

1.0.6-develop.0

2 years ago

1.1.0-develop.2

2 years ago

1.0.7-develop.1

2 years ago

1.1.0-develop.1

2 years ago

1.0.7-develop.0

2 years ago

1.1.0-develop.0

2 years ago

1.0.0-develop.3

2 years ago

1.0.0-develop.1

2 years ago

1.0.0-develop.2

2 years ago

1.0.2-develop.0

2 years ago

1.0.2-develop.1

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.2-develop.0

2 years ago

0.1.2-develop.1

2 years ago

1.0.5-develop.0

2 years ago

1.0.5-develop.1

2 years ago

0.1.0

2 years ago

0.1.1-develop.2

2 years ago

0.1.1-develop.0

2 years ago