Skip to content

Add SuperRare Bazaar ERC20 buy/mint proxy#22

Open
charlescrain wants to merge 4 commits into
mainfrom
erc20-proxy-buy
Open

Add SuperRare Bazaar ERC20 buy/mint proxy#22
charlescrain wants to merge 4 commits into
mainfrom
erc20-proxy-buy

Conversation

@charlescrain

Copy link
Copy Markdown

Summary

  • Adds SuperRareBazaarERC20BuyProxy, an owner-operated proxy that lets users buy or mint NFTs with ERC20 in a single transaction by funding the proxy, executing the Bazaar/RareMinter call, and forwarding tokens to the recipient.
  • Handles marketplace fees on top of the listing/mint price, approves currency for both Bazaar and RareMinter, and includes unit tests plus a Sepolia fork test against deployed contracts.
  • Includes a Foundry deploy script (script/bazaar/bazaar-erc20-buy-proxy-deploy/) requiring BAZAAR_ADDRESS and RARE_MINTER_ADDRESS.

Test plan

  • forge test --match-contract SuperRareBazaarERC20BuyProxyTest (14 passing)
  • forge test --match-contract SuperRareBazaarERC20BuyProxySepolia with RPC_URL pointing at Sepolia
  • Deploy to testnet via script/bazaar/bazaar-erc20-buy-proxy-deploy/deploy.sh and verify buy + mint flows

Made with Cursor

charlescrain and others added 4 commits May 29, 2026 10:11
Support pre-funded ERC20 Bazaar purchases through a minimal proxy that forwards the NFT to a specified recipient, and add deployment assets for the new contract.

Made-with: Cursor
Extends SuperRareBazaarERC20BuyProxy with RareMinter integration, same-tx ERC20 funding for buys/mints, and Sepolia fork test coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
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