MetaFam / chievemints

MetaGame’s achievements NFTs
https://chiev.es
1 stars 9 forks source link

Gasless minting #8

Open luxumbra opened 1 year ago

luxumbra commented 1 year ago

Is your feature request related to a problem? Please describe.

Problem 1: As an onboarding user who is new to blockchain and never used Polygon before, I get put off by hearing I have to pay for gas to mint an NFT because I don't have any MATIC and only used mainnet. I want to be able to claim my NFT for free or at least not have to jump down another rabbit hole in order to claim it.

Problem 2: Imagine There's a Chiev NFTs bot in Discord and it needs to be able to mint NFTs to player wallets on command and shouldn't need the awarding user or receiver to pay any gas.

Describe the solution you'd like Like we had with dekan's Chievmint; a chiev fundster NFT that when minted, the user pays $1, $5, $n and that funds the wallet that has the minter role which pays for users using the system.

Maybe down the line the $ from the fundsters buys seeds which gets staked and the yield pays the gas.

dysbulic commented 1 year ago

I've been reading up some on gasless transactions. The basic process is the client signs the transaction parameters and sends them via HTTP to a program with access to a wallet with a balance which executes the operation.

The linked description from OpenZeppelin details how to set up the server and executing wallet using their Defender architecture. @luxumbra, do you have an opinion on using Defender? I'm generally for it since the current implementation doesn't have any server requirements other than The Graph to look up owners of a token. Using Defender's Relay and AutoTask should keep us light.

luxumbra commented 1 year ago

@luxumbra, do you have an opinion on using Defender? I'm generally for it since the current implementation doesn't have any server requirements other than The Graph to look up owners of a token. Using Defender's Relay and AutoTask should keep us light.

Until now, I'd not heard of Defender but having just read up on it, I am for it. All for keeping us light and low cost. 👌🏻