0.1.54 • Published 2 years ago

@iandjx/wallet v0.1.54

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Wallet Context

Current version is 0.1.36 | version | description | | 0.1.36 | Enable ability to just connect wallet without requiring to switch networks | 0.1.35 | change type for chainparams | 0.1.34 | remove icons | 0.1.33 | expose utils | 0.1.32 | simplified handle connect logic, added loading event | 0.1.30 | emit wallet connect and disconnect events | 0.1.29 | use latest version of bridge to allow type consistency | 0.1.29 | remove window.localstorage.clear | 0.1.27 | always return chain information | 0.1.25 | delete deprecated testnets | 0.1.23 | added ofac list | 0.1.22 | added coinbase | 0.1.19 | return error when wallet fails to connect | 0.1.18 | add boolean for eagerly connecting to network | 0.1.17 | revert package versions due to incompatibility | 0.1.16 | revert handleConnect args dues to referential equality requirement | 0.1.14 | update package versions | 0.1.13 | add DFK | 0.1.12 | add rinkeby | 0.1.10 | add handle connect | 0.1.8 | remove eager connect, add utility fn

This is an opinionated implementation fo web3react v8 library for Rome Terminal iframe widgets. This allows users to have multiple wallets active simultaneously but only have one priority wallet. The priority wallet is determined by the last wallet the user has activated.

The package exposes the following

  1. WalletProvider - React Context Provider for the connectors
  2. useWallets - Hook that exposes setSelectedWallet function that updates the priority wallet
  3. useWeb3React - Hook that exposes the connector and hooks for the priority wallet
  4. ConnectionList - An array that contains all supported wallets by the package.

Quick Start

  1. yarn add @romeblockchain/wallet
  2. If using React add 2 the following env variables. REACT_APP_INFURA_KEY and REACT_APP_ALCHEMY_KEY
  3. if using Next JS add 2 the following env variables instead. INFURA_KEY and ALCHEMY_KEY.

Demo

  1. Check /example folder for React example
0.1.52

2 years ago

0.1.53

2 years ago

0.1.54

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

1.0.2

2 years ago

0.1.30

2 years ago

1.0.1

2 years ago

0.1.31

2 years ago

1.0.0

2 years ago

0.1.32

2 years ago

1.0.8

2 years ago

1.0.7

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

0.2.35

2 years ago

0.2.34

2 years ago

0.2.33

2 years ago

0.2.32

2 years ago

0.0.1

2 years ago

0.2.4

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.2.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago