Skip to content

Conversation

@leonardishere
Copy link

@leonardishere leonardishere commented Feb 11, 2022

#88 #155

Use this in the frontend to generate signatures

export async function getErc721PermitSignature(
owner: SignerWithAddress,
nftContract: Contract,
spender: string,
tokenID: BigNumberish,
deadline: BigNumberish = constants.MaxUint256,
nonce: BigNumberish = constants.MaxUint256 // optional override. leave empty to use correct nonce
): Promise<Signature> {

@netlify
Copy link

netlify bot commented Feb 11, 2022

✔️ Deploy Preview for elated-kalam-a67780 ready!

🔨 Explore the source changes: ea6c7a1

🔍 Inspect the deploy log: https://app.netlify.com/sites/elated-kalam-a67780/deploys/620cee54cb13cd0008375374

😎 Browse the preview: https://deploy-preview-161--elated-kalam-a67780.netlify.app

@defispartan
Copy link
Contributor

So I had a bit of a misunderstanding on the contracts side 😓 , I thought approve/permit was required for all NFTs transfers but safeTransferFrom allows the owner to transfer without approval.

What kind of uses cases would this enable @leonardishere? And does it still make sense to add this if we aren't going to directly use this on our frontend?

Setting up a gasless secondary market is what came to mind for me, but I'm not sure that we need to support this since there would be no royalty generated from these transactions

@leonardishere
Copy link
Author

So I had a bit of a misunderstanding on the contracts side sweat , I thought approve/permit was required for all NFTs transfers but safeTransferFrom allows the owner to transfer without approval.

What kind of uses cases would this enable @leonardishere? And does it still make sense to add this if we aren't going to directly use this on our frontend?

Setting up a gasless secondary market is what came to mind for me, but I'm not sure that we need to support this since there would be no royalty generated from these transactions

It's simply an ERC721 equivalent of https://eips.ethereum.org/EIPS/eip-2612. Someone else could give a better write up of its benefits but secondary markets would probably get the most benefit. I haven't checked the gas costs for the added functionality but it shouldn't be too crazy.

@0xjim 0xjim added the on hold label Feb 14, 2022
@JoaquinBattilana JoaquinBattilana changed the base branch from main to development February 21, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants