UNPKG

@velora-dex/sdk

Version:
27 lines (22 loc) 848 B
import type { ConstructFetchInput } from '../../types'; import { constructGetSpender, GetSpender } from '../swap/spender'; /** @deprecated NFT Orders are deprecated and will be removed in a future version. */ export type GetNFTOrdersContractFunctions = { getNFTOrdersContract: GetSpender; getTokenTransferProxy: GetSpender; }; // should work the same as OTCOrders /** @deprecated NFT Orders are deprecated and will be removed in a future version. */ export const constructGetNFTOrdersContract = ( options: ConstructFetchInput ): GetNFTOrdersContractFunctions => { // analogous to getSpender() but for Limit Orders Contract = AugustusRFQ const { getSpender: getTokenTransferProxy, getAugustusRFQ: getNFTOrdersContract, } = constructGetSpender(options); return { getNFTOrdersContract, getTokenTransferProxy, }; };