Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastlane-labs/atlas-config

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastlane-labs/atlas-config

A configuration package for Atlas Protocol

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
123
increased by720%
Maintainers
0
Weekly downloads
 
Created
Source

@fastlane-labs/test-config

A configuration package for Fastlane Labs, providing essential chain configuration data for EVM networks. This package is designed to be used in conjunction with the atlas-sdk and contains all relevant smart contract addresses for the Atlas protocol.

Installation

Install the package using npm:

npm install @fastlane-labs/atlas-config
yarn add @fastlane-labs/atlas-config

Usage

Import and use the configuration data in your TypeScript or JavaScript project:

import { chainConfig, getChainConfig, ChainConfig } from '@fastlane-labs/atlas-config';

// Access the entire chain configuration
console.log(chainConfig);

// Get configuration for a specific chain (e.g., Polygon mainnet)
const polygonConfig = getChainConfig(137);
console.log(polygonConfig);

// Attempting to get configuration for an unknown chain will throw an error
try {
  const unknownConfig = getChainConfig(999999);
} catch (error) {
  console.error(error); // "Chain configuration not found for chainId: 999999"
}

Configuration Structure

The ChainConfig interface describes the structure of the configuration for each supported chain:

interface ChainConfig {
  contracts: {
    atlas: object;
    atlasVerification: object;
    sorter: object;
    simulator: object;
    multicall3: object;
  };
  eip712Domain: {
    name: string;
    version: string;
    chainId: number;
    verifyingContract: string;
  };
}

Supported Chains

This package includes configurations for various Ethereum networks. Use the getChainConfig function with the appropriate chain ID to retrieve the configuration for a specific network.

Supported Chains

Currently, this package supports the following chains:

Mainnets:

  • Polygon (Chain ID: 137)
  • Base (Chain ID: 8453)
  • Arbitrum (Chain ID: 42161)

Testnets:

  • Ethereum Sepolia (Chain ID: 11155111)
  • Polygon Amoy (Chain ID: 80002)

Each chain configuration includes contract addresses and EIP-712 domain information specific to that network. Use the appropriate chain ID when calling getChainConfig() to retrieve the configuration for your desired network.

Integration with atlas-sdk

This configuration package is designed to work seamlessly with the Atlas Typescript SDK. It provides all the necessary smart contract addresses and network-specific information required for interacting with the Atlas protocol.

Contributing

If you'd like to contribute to this project, please submit a pull request or open an issue on our GitHub repository.

License

This project is licensed under the MIT License.

Support

For questions, issues, or feature requests, please open an issue on our GitHub repository or contact our support team at support@fastlanelabs.com.

Disclaimer

This package is part of the Atlas protocol ecosystem. Make sure to use it in conjunction with other Atlas-related packages and follow best practices for blockchain development and security.

Keywords

FAQs

Package last updated on 11 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc