npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@stabilityprotocol/config

v1.4.0

Published

The Config Package contains essential configurations for different blockchain networks within the Stability ecosystem. It's designed to provide a clean, dependency-free set of data that can be easily imported and utilized across various parts of your appl

Downloads

16

Readme

Config

The Config Package contains essential configurations for different blockchain networks within the Stability ecosystem. It's designed to provide a clean, dependency-free set of data that can be easily imported and utilized across various parts of your application when interfacing with blockchain operations.

Key Components:

  • Blockchains Enum: This enumeration defines the available blockchain networks within the Stability ecosystem, such as the Stability Testnet and the Global Trust Network (GTN). Each network is represented as an enum member, providing a clear and type-safe way of referencing these networks throughout your code.

  • networks Object: This is the core of the file, containing detailed configurations for each blockchain network defined in the Blockchains enum. Each network's configuration includes:

    • id: The chainID for the network.
    • name: The human-readable name of the network.
    • nativeCurrency: Information about the network's native currency, including its name, symbol, and decimal precision. Stability-utilizing networks eschew native cryptocurrencies, maintaining these values solely for EVM compatibility.
    • rpcUrls: RPC URLs for accessing the network. It includes both default and public endpoints.
    • blockExplorers: URLs to the network's block explorer websites, providing a way to view transactions and blocks on the network.
    • contracts: Addresses and other relevant information about smart contracts deployed on the network, such as the Multicall3 contract.
    • logoUri: The URI to a logo representing the network, useful for UI purposes.

Usage:

The index.ts configurations can be imported into various parts of your application, allowing you to use these settings independently of other dependencies. This modularity enhances your codebase's maintainability and scalability.

For instance, when your application components need to interact with these networks via the viem library, these configurations facilitate the dynamic establishment of network connections, clients, and other blockchain-centric operations.

For those seeking a pre-configured solution that incorporates viem and ethers, the Stability Team offers a ready-to-use provider package. This provider package, in turn, depends on the config package for its underlying configurations.

Installation

To install the package, run the following command in your project directory:

npm i @stabilityprotocol/config

License

This library is licensed under the MIT License. See the LICENSE file for more information.