From 00408b7be32bea0e7c3a1235ad0fca331cce6b1b Mon Sep 17 00:00:00 2001 From: hex <90090323+hexacroes@users.noreply.github.com> Date: Thu, 25 May 2023 15:22:10 +0800 Subject: [PATCH] chore: Addresses type (#64) --- src/constants/addresses.ts | 10 +--------- src/types.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/constants/addresses.ts b/src/constants/addresses.ts index a18c3d1..0da445a 100644 --- a/src/constants/addresses.ts +++ b/src/constants/addresses.ts @@ -1,13 +1,5 @@ import { ChainId } from "@looksrare/sdk-v2"; - -/** LooksRare aggregator contract addresses */ -export interface Addresses { - AGGREGATOR: string; - ERC20_ENABLED_AGGREGATOR: string; - LOOKSRARE_V2_PROXY: string; - SEAPORT_V1_4_PROXY: string; - SEAPORT_V1_5_PROXY: string; -} +import { Addresses } from "../types"; const mainnetAddresses: Addresses = { AGGREGATOR: "0x00000000005228B791a99a61f36A130d50600106", diff --git a/src/types.ts b/src/types.ts index a21cd93..12f30e6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2,6 +2,15 @@ import { Order } from "@opensea/seaport-js/lib/types"; import { BigNumber, BigNumberish, BytesLike, ContractTransaction, PayableOverrides, UnsignedTransaction } from "ethers"; import { MakerOrderFromAPI } from "./interfaces/LooksRareV2"; +/** LooksRare aggregator contract addresses */ +export interface Addresses { + AGGREGATOR: string; + ERC20_ENABLED_AGGREGATOR: string; + LOOKSRARE_V2_PROXY: string; + SEAPORT_V1_4_PROXY: string; + SEAPORT_V1_5_PROXY: string; +} + /** List of collection types supported by the aggregator */ export enum CollectionType { ERC721 = 0,