@layerzerolabs/ui-wallet-aptos
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);