0.0.2-alpha.6 • Published 4 months ago

@xlabs-libs/wallet-aggregator-evm v0.0.2-alpha.6

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

Wallet Aggregator - EVM

Implements the base abstractions for EVM-compatible blockchains, using wagmi under the hood to handle connection implementations.

Wallets implemented so far:

WalletLink
Injected wallets (e.g: Brave)
Metamaskhttps://metamask.io
WalletConnecthttps://walletconnect.com
Bitget Wallethttps://web3.bitget.com
Coinbase Wallethttps://www.coinbase.com/wallet
Ledger Connecthttps://www.ledger.com

Usage

The base EVMWallet configuration allows for the following parameters:

  • chains: an array of chain information objects. While the information is the same as in the {@link https://eips.ethereum.org/EIPS/eip-3085 EIP-3085}, the structure is slightly different. Defaults to all chains.
  • preferredChain: an EVM chain id (e.g. 5 for Görli, 43113 for Avalanche Fuji Testnet, etc.). When connecting, the wallet will try to switch to this chain if the provider's network's chain id differs.
  • autoSwitch: indicates whether the wallet should attempt to switch the network back to the preferredChain upon detecting a chainChanged event (if set).
  • confirmations: Amount of confirmations/blocks to wait a transaction for

Additionally, each specific wallet has its own specific options.

import {
  MetamaskWallet,
  WalletConnectWallet,
  BitgetWallet,
  CoinbaseWallet,
  LedgerWallet,
  InjectedWallet,
} from "@xlabs-libs/wallet-aggregator-evm";

const injected = new InjectedWallet();
const metamask = new MetamaskWallet({
  preferredChain: 5,
  autoSwitch: true,
});
const walletConnect = new WalletConnectWallet({
  preferredChain: 43113,
});
const bitgetWallet = new BitgetWallet({
  options: {
    appName: "My App",
  },
});
const coinbase = new CoinbaseWallet({
  options: {
    reloadOnDisconnect: false,
    appName: "My App",
  },
});
const ledger = new LedgerWallet();
0.0.2-alpha.6

4 months ago

0.0.2-alpha.5

6 months ago

0.0.2-alpha.4

8 months ago

0.0.2-alpha.3

8 months ago

0.0.2-alpha.2

9 months ago

0.0.2-alpha.0

9 months ago

0.0.2-alpha.1

9 months ago

0.0.1-alpha.45

10 months ago

0.0.1-alpha.44

10 months ago

0.0.1-alpha.47

9 months ago

0.0.1-alpha.46

9 months ago

0.0.1-alpha.43

12 months ago

0.0.1-alpha.41

1 year ago

0.0.1-alpha.42

1 year ago

0.0.1-alpha.40

1 year ago

0.0.1-alpha.39

1 year ago

0.0.1-alpha.38

1 year ago

0.0.1-alpha.37

1 year ago

0.0.1-alpha.36

1 year ago

0.0.1-alpha.35

1 year ago

0.0.1-alpha.34

1 year ago

0.0.1-alpha.33

1 year ago

0.0.1-alpha.29

2 years ago

0.0.1-alpha.28

2 years ago

0.0.1-alpha.30

2 years ago

0.0.1-alpha.32

2 years ago

0.0.1-alpha.31

2 years ago

0.0.1-alpha.27

2 years ago

0.0.1-alpha.26

2 years ago

0.0.1-alpha.23

2 years ago

0.0.1-alpha.22

2 years ago

0.0.1-alpha.25

2 years ago

0.0.1-alpha.24

2 years ago

0.0.1-alpha.21

2 years ago

0.0.1-alpha.20

2 years ago

0.0.1-alpha.14

2 years ago

0.0.1-alpha.13

2 years ago

0.0.1-alpha.16

2 years ago

0.0.1-alpha.15

2 years ago

0.0.1-alpha.18

2 years ago

0.0.1-alpha.17

2 years ago

0.0.1-alpha.19

2 years ago

0.0.1-alpha.12

2 years ago

0.0.1-alpha.11

2 years ago

0.0.1-alpha.10

2 years ago

0.0.1-alpha.9

2 years ago

0.0.1-alpha.8

2 years ago

0.0.1-alpha.7

2 years ago

0.0.1-alpha.6

2 years ago

0.0.1-alpha.5

2 years ago

0.0.1-alpha.4

2 years ago

0.0.1-alpha.3

2 years ago

0.0.1-alpha.2

2 years ago

0.0.1-alpha.1

2 years ago

0.0.1-alpha

2 years ago