Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/v3 #14

Merged
merged 15 commits into from
Nov 22, 2023
Merged

Feat/v3 #14

merged 15 commits into from
Nov 22, 2023

Conversation

jackmellis
Copy link
Collaborator

No description provided.

@jackmellis jackmellis force-pushed the feat/v3 branch 2 times, most recently from 69f61fd to 29b9b74 Compare November 22, 2023 13:28
For nftx v3 we're moving away from ethers.js and switching to viem + wagmi
For v3 we're running our own pricing router, instead of directly hitting sushi or routing via 0x
For asset metadata we've moved over from using opensea and alchemy to instead use reservoir
Pools in v3 are completely different in terms of concepts and implementation. So although we still have liquidity pools as before, they have been completely rewritten.
A new createQuery method now allows you to create statically typed queries and is how we will internally write most of our subgraph queries for v3
For v3 all buy/sell/swap actions are done via quotes. You request a quote for a transaction from the nftx api, then pass the quote data into the nftx.js method.
A new package, @nftx/errors allows for a much more fine grained error system and easier handling/recovering/displaying of errors in the UI
Trades in v3 can now be made via permit2. This allows you to make a single approval and then use permit2 to simply sign a transaction without paying gas.
@jackmellis jackmellis merged commit f0df1e7 into main Nov 22, 2023
1 check passed
@jackmellis jackmellis deleted the feat/v3 branch November 22, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant