UNPKG

@evolutionland/evolution-js

Version:

evolution evolution-js evolutionland evolution-js-sdk evolution-land metaverse

28 lines (27 loc) 682 B
import type { AddressesType } from "../../types"; import { LandId } from "../../config/constants"; export declare enum ChainIDs { Ethereum = 1, Ropsten = 3, Crab = 44, CrabTest = 44, Heco = 128, Hecotest = 256, Polygon = 137, Mumbai = 80001, Tron = 11112, Shasta = 11111 } /** * Get Addresses * @param chainId Chain id * @returns Addresses or undefined */ export declare const getAddressesByLandId: (landId: LandId) => AddressesType | undefined; /** * Get Address By Name * @param chainId Chain id * @param name Name * @returns Address */ export declare const getAddressByName: (landId: LandId, name: keyof AddressesType) => string;