Content pfp
Content
@
0 reply
20 recasts
20 reactions

welter pfp
welter
@fun
Farcaster Wrapped NFTs are here ...but can somebody please help me mint these? i need them onchain either as a GIF or as a p5.js script, DM me!
25 replies
7 recasts
68 reactions

Steve pfp
Steve
@stevedylandev.eth
Of course I’m obligated to suggest IPFS ;) but I’m curious what on chain costs would be for an L2 like Base? Is it still crazy expensive?
2 replies
0 recast
0 reaction

Steve pfp
Steve
@sdv.eth
This could be done on L1 pretty inexpensively as some folk have already uploaded p5.js as smart contract bytecode. The contract for this collection would: - import the p5.js - use @fun’s p5.js script - have a mint function that takes (minutes, casts, fname/ens) that is ideally checked against a merkle tree - profit?
1 reply
0 recast
1 reaction

Steve pfp
Steve
@sdv.eth
Sorry meant to say days instead of casts. But yeah, minters pay a small fee as it’s just 2 ints and a string to write. The merkle tree would be in the frontend and checked against an onchain merkle root to ensure no one mints bogus stats. Those parameters are fed into the script and voila! Efficient storage on ETH
1 reply
0 recast
1 reaction

horsefacts 🚂 pfp
horsefacts 🚂
@horsefacts.eth
This is what I was thinking too. What's the best and latest contract tooling for onchain p5? ethfs + scripty?
1 reply
0 recast
0 reaction

Steve pfp
Steve
@sdv.eth
And that's where my facade ends! As someone who's written zero lines of solidity code... I'm eth newbie..just learning
1 reply
0 recast
1 reaction

horsefacts 🚂 pfp
horsefacts 🚂
@horsefacts.eth
me too
1 reply
0 recast
1 reaction

Steve pfp
Steve
@stevedylandev.eth
Oh yeah I’m pretty familiar on how it’s done, but the same problem persists with storing anything on chain. I could take a whole video and make it one long string, but the longer the string the more expensive it gets. P5.js generally helps reduce it but can still be pricey depending how complex the code is
1 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
The challenge is writing something that’s affordable enough for minters to pay gas fees for. One of my favorite on chain projects Two Bit Bears uses code to render an SVG of literally two squares. On Eth Mainnet back in the day it could cost $100-$300 to mint because of the gas fees to write that on chain
1 reply
1 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
L2’s have the possibility to perhaps change this and make more possible, but I think there are still problems and limitations as to how far you can go. Not just how expensive but also how much the chain can handle and predict gas when minting.
1 reply
0 recast
0 reaction

Steve pfp
Steve
@sdv.eth
I’m familiar with the obscene gas prices from that era and Two Bit Bears but not their smart contract. I don’t think writing two integers, a string, and all the necessities for ERC-721 are truly cost prohibitive for minters. p5.js, the custom script, are all one time writes, only the latter being paid by the dev.
1 reply
0 recast
0 reaction

Steve pfp
Steve
@stevedylandev.eth
That’s is true, if the uri is a constant in the contract then that makes sense. I imagine if you’re trying to go full on chain it would require including the p5.js library too? I know most people use it as an import script from a centralized server
1 reply
0 recast
0 reaction