Libraries
The Pulsar suite leverages several powerful, open-source libraries to deliver its core functionality. This document provides an overview of the key external dependencies used across the main packages.
pulsar-core
The core package for Pulsar is built on a foundation of efficient state management and immutability.
- Zustand: A small, fast, and scalable state management solution that serves as the headless logic core for Pulsar’s transaction pool.
- Immer: Used to work with immutable state in a more convenient way, making state updates straightforward and predictable.
- Day.js: A minimalist JavaScript library for parsing, validating, manipulating, and displaying dates and times, used for handling transaction timestamps.
- @tuwaio/orbit-core: A minimalist TypeScript library with utils for TUWA ecosystem.
pulsar-evm
This package is dedicated to EVM-compatible blockchains and integrates with the most prominent libraries in that ecosystem.
- Viem: A low-level TypeScript interface for Ethereum that handles RPC calls and transaction requests. Pulsar’s EVM tracker uses it for interacting with nodes.
- wagmi/core: Provides wallet connection and hooks. Pulsar integrates with
wagmito listen for wallet and chain changes, automatically updating its state. - @tuwaio/orbit-evm: A minimalist TypeScript library with Viem/wagmi utils for TUWA ecosystem.
pulsar-solana
The Solana adapter package is built to work seamlessly with the Solana blockchain’s unique architecture.
- Gill: A modern Solana SDK that provides a set of tools for building on-chain programs and interacting with the Solana RPC. It’s the primary utility for building and sending transactions.
- @tuwaio/orbit-solana: A minimalist TypeScript library with Gill utils for TUWA ecosystem.
- @wallet-standard: The Wallet Standard is a set of interfaces and conventions designed to improve the user experience and developer experience of wallets and applications for any blockchain.
This modular structure allows developers to include only the necessary packages, keeping their application bundle size small and focused.
Last updated on