Open ErnestMironov opened 2 years ago
Hey! I'm working on switching up the repo to support the react hooks
Definitely intend on landing this PR.
Hey, I recommend create maybe a new repo only for the hooks, there are users that already have their custom hooks using same functionality. Only to keep bundle size minimal and easier to mantain.
List of React hooks:
useCancelOrder return a method that takes as input: nonce orderType
useCreateBasedOrder - creates an order of any NFT from a certain collection that the user has.
useCreateOrder creates an order to buy an NFT, return a method that takes as input: collection address tokenId ERC20 address ERC20 amount
useFullfillOrder - makes another user buy an NFT, with an order already created, takes as input: signedOrderObject
useOrders - finds orders that match the passed parameters. Returns all orders or one specific order
useQuickSwap - finds a corresponding order and executes a transaction
useWallet - connects wallet, returns address and balance.