@trustswap/teamfinance-chain-config
TypeScript icon, indicating that this package has built-in type declarations

1.6.6 • Public • Published

@trustswap/teamfinance-chain-config

Latest version

Package that contains list of supported chains by Team Finance, as well as various public, up-to-date contract addresses provided by Team Finance/TrustSwap. This is meant to be shared among our codebase.

It is the successor of teamfinance-chains package.

Installation

Using npm

npm i @trustswap/teamfinance-chain-config

or yarn

yarn add @trustswap/teamfinance-chain-config

Bump version

# edit version of `package.json`
npm i
# commit files

Usage

There are several exported modules from this library, main ones are chains and contracts. Their sample usage is as below:

chains.evmMainnetChainsMap.ethereum

Recent changelog

TBD

Contributing

  • This package is written in TypeScript to make sure type-safe nature of the codebases, therefore no any is allowed.
  • Please don't add anything sensitive (api keys, secrets,...) into the codebase as it is publicly available on npm. After deployment, it is available on the web and anyone can see those.
  • Since it contains mostly static data, there is no unit testing required for now.
  • The package is automatically published to NPM upon these conditions (both):
    • A new commit on main branch
    • The version field in package.json is different from any of the published versions on NPM.
  • On contract addresses object, consider using the chain ID as the key, since each chain has unique chain ID and we can make use of functions in Object prototype of Javascript itself.
  • The chain IDs in the objects should be in hex format, and in lower case.

Readme

Keywords

none

Package Sidebar

Install

npm i @trustswap/teamfinance-chain-config

Weekly Downloads

258

Version

1.6.6

License

none

Unpacked Size

1.29 MB

Total Files

8

Last publish

Collaborators

  • clipsub
  • larenzon
  • kacperts
  • f13r