0.1.27 • Published 1 year ago

@layerzerolabs/ui-wallet-evm v0.1.27

Weekly downloads
-
License
BUSL-1.1
Repository
-
Last release
1 year ago

Installation

yarn add @layerzerolabs/ui-wallet-evm

pnpm add @layerzerolabs/ui-wallet-evm

npm install @layerzerolabs/ui-wallet-evm

Usage

In this package you'll find abstract classes for generic EvmWallet's, generic InjectedWallet's, and implementations of a variety of those InjectedWallet's - MetaMask, CoinbaseWallet, etc. - and WalletConnect. These implementations are ready to use as is in your LayerZero dApp, simply import the wallets you'd like to support and assign them to your walletStore.

import {CoinbaseWallet, MetaMaskWallet, WalletConnect} from '@layerzerolabs/ui-wallet-evm';

const wallets = {
  metamaskWallet: new MetaMaskWallet(),
  coinbaseWallet: new coinbaseWallet(),
  walletConnect: new WalletConnect({
    projectId: '10b5df65476df304efbb9a6b0c42f8b0',
    chains: chains,
    showQrModal: true,
  }),
};

walletStore.addWallets(wallets);

To add your own EvmWallet, extend the abstract class and include a provider, implementation for autoConnect, and the type.

0.1.27

1 year ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.10

2 years ago

1.0.0

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago