@layerzerolabs/ui-wallet-aptos
v0.1.10
Published
<p align="center"> <a href="https://layerzero.network"> <img alt="LayerZero" style="max-width: 500px" src="https://d3a2dpnnrypp5h.cloudfront.net/bridge-app/lz.png"/> </a> </p>
Downloads
103
Readme
Installation
yarn add @layerzerolabs/ui-wallet-aptos
pnpm add @layerzerolabs/ui-wallet-aptos
npm install @layerzerolabs/ui-wallet-aptos
Usage
This package provides the AptosWallet
class which takes a type
and an adapter
and returns a Wallet
instance for Aptos interactions. We attempt to abstract the official Aptos Wallet Adapter implementation. In our applications we use the officially supported adapter packages.
import {AptosWallet} from '@layerzerolabs/ui-wallet-aptos';
import {MartianWallet} from '@martianwallet/aptos-wallet-adapter';
import {PontemWallet} from '@pontem/wallet-adapter-plugin';
import {FewchaWallet} from 'fewcha-plugin-wallet-adapter';
import {PetraWallet} from 'petra-plugin-wallet-adapter';
const wallets = {};
wallets.petraWallet = new AptosWallet('Petra', new PetraWallet());
wallets.fewchaWallet = new AptosWallet('Fewcha', new FewchaWallet());
wallets.pontemWallet = new AptosWallet('Pontem', new PontemWallet());
wallets.martianWallet = new AptosWallet('Martian', new MartianWallet());
walletStore.addWallets(wallets);