@@ -200,19 +200,19 @@ class NftSwapV4 implements INftSwapV4 {
200200 ) ;
201201 }
202202
203- loadApprovalStatus (
203+ loadApprovalStatus = (
204204 asset : SwappableAssetV4 ,
205205 walletAddress : string ,
206206 approvalOverrides ?: Partial < ApprovalOverrides > | undefined
207- ) : Promise < ApprovalStatus > {
207+ ) : Promise < ApprovalStatus > => {
208208 // TODO(johnrjj) - Fix to pass thru more args...
209209 return getApprovalStatus (
210210 walletAddress ,
211211 approvalOverrides ?. exchangeContractAddress ?? this . exchangeProxy . address ,
212212 asset ,
213213 this . provider
214214 ) ;
215- }
215+ } ;
216216
217217 awaitTransactionHash = async ( txHash : string ) => {
218218 return this . provider . waitForTransaction ( txHash ) ;
@@ -703,51 +703,6 @@ class NftSwapV4 implements INftSwapV4 {
703703 'Only ERC721 Orders are currently supported for matching. Please ensure both the sellOrder and buyOrder are ERC721 orders'
704704 ) ;
705705 } ;
706-
707- getTakerAsset = ( order : NftOrderV4 ) : SwappableAssetV4 => {
708- // return {
709- // tokenAddress: '',
710- // tokenId: ''
711- // }
712- } ;
713-
714- getMakerAsset = ( order : NftOrderV4 ) : SwappableAssetV4 => {
715- // return {
716- // tokenAddress: '',
717- // tokenId: ''
718- // }
719- } ;
720-
721- // todo: consolidate
722- // todo: use these to power validation for the api
723- checkOrderCanBeFilledMakerSide = ( order : NftOrderV4 ) => { } ;
724-
725- checkOrderCanBeFilledTakerSide = (
726- order : NftOrderV4 ,
727- override ?: VerifyOrderOptionsOverrides
728- ) => {
729- const shouldLoadApprovalStatus = override ?. verifyApproval ?? true ;
730- const shouldLoadBalance = override ?. verifyBalance ?? true ;
731-
732- const direction = parseInt ( order . direction . toString ( 10 ) ) ;
733- if ( direction === TradeDirection . SellNFT ) {
734- if ( 'erc721Token' in order ) {
735- this . loadApprovalStatus ( ) ;
736-
737- const { erc721Token, erc721TokenId } = order ;
738-
739- // TODO(johnrjj) - More validation here before we match on-chain
740- } else if ( 'erc1155Token' in order ) {
741- const { erc1155TokenAmount, erc1155Token, erc1155TokenId } = order ;
742- }
743- } else if ( direction === TradeDirection . BuyNFT ) {
744- }
745- } ;
746- }
747-
748- interface VerifyOrderOptionsOverrides {
749- verifyApproval ?: boolean ;
750- verifyBalance : boolean ;
751706}
752707
753708export { NftSwapV4 } ;
0 commit comments