2.2.13 • Published 5 months ago

@trustswap/teamfinance-chains v2.2.13

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@trustswap/teamfinance-chains

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.

Installation

Using npm

npm i @trustswap/teamfinance-chains

or yarn

yarn add @trustswap/teamfinance-chains

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:

import { chains, contracts } from "@trustswap/teamfinance-chains";

const lockContractForAvalanche =
  contracts.lockContracts[chains.evmMainnetChainsMap.avalanche.chainId]
    .contractAddress;

console.log("Contract", lockContractForAvalanche); // 0xe2fe530c047f2d85298b07d9333c05737f1435fb

Recent changelog

  • 2.2.0: Add safeMultisigDeployments as Safe Multisig Deployment address database, for some chains. Details here.

2.0 breaking changes

  • There is only one source-of-truth for typing now: types.ts
  • Main keys the objects are in hex format.

2.2.11 breaking changes

  • Change multisigChainInfo to multisigChains

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.
2.2.13

5 months ago

2.2.11

5 months ago

2.2.12

5 months ago

2.2.10

5 months ago

2.2.9

5 months ago

2.2.8

5 months ago

2.2.1

5 months ago

2.2.0

5 months ago

2.2.3

5 months ago

2.2.2

5 months ago

2.2.5

5 months ago

2.2.4

5 months ago

2.2.7

5 months ago

2.2.6

5 months ago

2.1.41

6 months ago

2.1.40

6 months ago

2.1.38

6 months ago

2.1.39

6 months ago

2.1.36

7 months ago

2.1.37

7 months ago

2.1.34

7 months ago

2.1.35

7 months ago

2.1.33

7 months ago

2.1.32

7 months ago

2.1.29

8 months ago

2.1.30

8 months ago

2.1.31

8 months ago

2.1.27

8 months ago

2.1.28

8 months ago

2.1.25

8 months ago

2.1.26

8 months ago

2.1.23

8 months ago

2.1.24

8 months ago

2.1.21

8 months ago

2.1.22

8 months ago

2.1.20

8 months ago

2.1.18

8 months ago

2.1.19

8 months ago

2.1.16

9 months ago

2.1.17

9 months ago

2.1.14

9 months ago

2.1.15

9 months ago

2.1.12

9 months ago

2.1.13

9 months ago

2.1.10

9 months ago

2.1.11

9 months ago

2.1.9

9 months ago

2.1.8

9 months ago

2.1.7

9 months ago

1.0.8

10 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.1.4

9 months ago

2.1.3

9 months ago

2.1.6

9 months ago

2.1.5

9 months ago

2.1.0

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago