storage-incentives
storage-incentives copied to clipboard
Smart contracts for Swarm storage incentives
This implements the feature allowing staked nodes to change their overlay without restaking (called neighbourhood hopping, see [SWIP-19](https://github.com/ethersphere/SWIPs/pull/48)) Implemented by changing stake registry to be keyed with node address instead...
Phase 4 is already in production for a while and Phase 5 is not planned but it appears under the `Future Implementations Plan` section.
Change a structure of Staking and also add gas optimizations, custom errors etc
### Problem The pattern where we have in PostageStamp `expireLimited(type(uint256).max);` will fail in FOR loop when there is too big a number of potential expires, so far this hasnt been...
See: https://pkg.go.dev/github.com/ethereum/go-ethereum/cmd/abigen
So in each claim it automatically gets sent to a designated address (or if address(0), send to msg.sender) credit: @mfw78
When simulating ethereum network we should use current hardfork which is Shanghai https://docs.gnosischain.com/specs/hard-forks/shanghai-capella This is applicable to local hardhat setup in storage incentives repo but should also be used in...
Users or nodes could send by mistake XDAI to contracts and lose it, to prevent that we can integrate a fallback that rejects those transactions. ``` receive() external payable {...
Foundry is currently regarded as the most advanced tooling for working with smart contracts https://github.com/foundry-rs/foundry The main benefit is faster testing which saves developers time. Foundry also has some interesting...