Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 1.08 KB

constants.md

File metadata and controls

21 lines (14 loc) · 1.08 KB

Constants

Addresses

An object containing all the contract addresses for each supported chain. Refer to the Constant type to see the complete list of addresses.

import { addressesByNetwork, SupportedChainId } from "@looksrare/sdk";
const addresses = addressesByNetwork[SupportedChainId.MAINNET];

⚠️ STRATEGY_STANDARD_SALE and STRATEGY_COLLECTION_SALE addresses refer to StrategyStandardSaleForFixedPriceV1B and StrategyAnyItemFromCollectionForFixedPriceV1B contracts, while STRATEGY_STANDARD_SALE_DEPRECATED and STRATEGY_COLLECTION_SALE_DEPRECATED addresses refer to the first iterations of these strategies that are not used anymore.

Chains

An object containing data related to supported chains. Refer to the Constant type to see the complete list of chain info.

import { CHAIN_INFO, SupportedChainId } from "@looksrare/sdk";
const currentChainInfo = CHAIN_INFO[SupportedChainId.MAINNET];