0.0.9 • Published 4 years ago

@makerdao/dai-plugin-walletlink v0.0.9

Weekly downloads
68
License
MIT
Repository
-
Last release
4 years ago

dai-plugin-walletlink

A Dai.js plugin for using Coinbase WalletLink in a browser environment.

Example usage

import WalletLinkPlugin from '@makerdao/dai-plugin-walletlink';
import Maker from '@makerdao/dai';

const maker = await Maker.create('http', {
  plugins: [WalletLinkPlugin],
  accounts: {
    myWalletLink1: { type: 'walletlink' }
  }
});

// this will not resolve until the account is set up
await maker.authenticate();

// or you can defer setting the account up until later
await maker.addAccount('myWalletLink2', { type: 'walletlink' });

Using the optional address callback

await maker.addAccount('myWalletLink', {
  type: 'walletlink',
  callback: address => {
    //e.g. for analytics
    console.log('My WalletLink address', address);
  }
});
0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

5 years ago

0.0.1-alpha8

5 years ago

0.0.1-alpha7

5 years ago

0.0.1-alpha6

5 years ago

0.0.1-alpha5

5 years ago

0.0.1-alpha4

5 years ago

0.0.1-alpha3

5 years ago

0.0.1-alpha2

5 years ago

0.0.1-alpha1

5 years ago

0.0.1-alpha

5 years ago