@layerzerolabs/ui-wallet-aptos
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

LayerZero

@layerzerolabs/ui-wallet-aptos

NPM Version Downloads Snyk Vulnerabilities for npm package version NPM License

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @layerzerolabs/ui-wallet-aptos

Weekly Downloads

10

Version

0.1.10

License

BUSL-1.1

Unpacked Size

39.2 kB

Total Files

7

Last publish

Collaborators

  • layerzero-bot