2

Please specifically say which problems you are trying to solve. Fair randomization? Bot protection? Gas wars? I wrote https://github.com/AreaWorld/ethereum-contracts which solves many of these problems and is permissively licensed. I also host a public Community Service Hour to take questions live from the public on Twitch and walk through this contract and ...


2

You can use a merkle airdrop for it. Here is a starter kit which also includes links to other services which might help you do it.


2

Think of it like this, Who call the function/initialize a transaction will pay for the gas fee A smartcontract's function can not just run by itself, either another smartcontract or an EOA must call it first which means that the first one to call a smartcontract's function must be an EOA, because no smartcontract's function can call another smartcontract's ...


1

Unsure if you mean deployed contracts or undeployed/templates. Here are my takes for both. Deployed: Uniswap (all versions) Opensea contracts MetaMask swap Aave Undeployed/templates: OpenZeppelin ERC20 & ERC721 Gnosis Safe


1

Are these two different concepts? Even though we can't predict the result beforehand, being deterministic means that for the same starting conditions, and given the same inputs, the same result will occur, even if that result is a smart contract running forever†. It will run forever in the same way - following the same execution path - on each node in the ...


1

yes there are, dapp.tools and openzeppelin being the most battle tested and reused


1

As you can see by the keyword virtual these getters can be overridden in the derived contracts. Someone who might want to change the way those getters behave could use this property to do just that. Another thing for me is just simplifying naming. By convention underscore before the name of the variable notes that it is a global variable (state variable in ...


1

Here's a good article: https://codeforgeek.com/assert-vs-require-in-solidity/ Philosophically, they are intended to mean two very different things. require is "user should have done this before calling the function", whereas assert means "something fundamentally is wrong". Pragmatically, it depends on what your intention is. If the goal ...


1

Brownie One of the best blockchain development framework written in Python. It supports native pytest which is able to run unit as well as integration tests. The whole info on how to write and perfrom proper testing: https://eth-brownie.readthedocs.io/en/stable/tests-pytest-intro.html


Only top voted, non community-wiki answers of a minimum length are eligible