- Node.js: version 14 or later.
- yarn: version 1.22.19
git clone [email protected]:Cryptocoders-wtf/generative.git
cd generative
yarn install
yarn run serve
cd contract
npm install
npx hardhat run ./scripts/deploy_splatter.ts
git clone [email protected]:Cryptocoders-wtf/generative.git
cd generative
yarn install
yarn run serve
cd contract
npm install
npx hardhat run ./scripts/deploy_splatter.ts
masatakaさんの指摘の拝借ですが
AccessControl入れておくと後から管理者を追加出来るので、中長期的に見た時に運用が楽になると思います。
mintPNouns()で「送金されたETHは、即トレジャリーウォレットへ送金」の仕様が出来ていないと思います。
市場供給量2000点に対して1人辺り100点ミントは多い気がするのですが、問題ないでしょうか?
withdraw()はEOAへの送金だけが目的ならtransfer()を使ったほうが安全だと思います。
mintForTreasuryAddressは参照しかしないならconstantもしくはimmutableにしたほうがガス代の節約になります
複数枚ミントする設計でERC721だとユーザーとコンストラクタでのガス代も結構かかると思いますが、
ERC721AかERC721PsiかERC721AntiScamにERC721P2Pの実装を移植するのはどうでしょうか?
大きめの変更も必要だと思うので、ここは他エンジニアの意見も聞きたいです。
自分ならオーナーミント無料は念のため「owner() != _msgSender() && admin != _msgSender()」のelseにrequire(msg.value == 0)入れると思います
ミント数のカウントはプレセール1,2,パブセで共通の認識でよろしいでしょうか?(プレセ1で100枚ミントした人はプレセ2以降は買えない)
masatakaさんの指摘の拝借ですが
ミント系は下記入れたほうが良いと思います。
require(tx.origin == msg.sender,"コントラクトからはダメ");
tx.originは必ずトランザクション発行者(EOA)のアドレスになるため、
コントラクトからmint()をループで回す等を弾けると認識しています。
コンストラクタとmintPNouns()のfor処理の「nextTokenId++」はストレージ書き込みで重いため、forの回数分加算したほうがガス代が安く済みます。(nextTokenId += _mintAmount)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.