Releases: erasureprotocol/erasure-protocol
Multiple Token Support
This release adds support for staking and payments with DAI or NMR. DAI stakes are converted to NMR on Uniswap to perform a burn.
Find contracts addresses and ABIs in @erasure/abis
Update testenv
Add deployment of Erasure_Users
Erasure Escrows
This release includes the launch of an escrow for CountdownGriefing
agreements. It also redeploys existing factories for simplifications and code quality improvements. The Post
template has been deprecated in favor of using Feed
for building track-record.
Changelog
Here are the relevant changes for this release:
- New
Erasure_Escrows
registry - Redeploy
Feed
template - Redeploy
SimpleGriefing
template - Redeploy
CountdownGriefing
template - New
CountdownGriefingEscrow
template - Deprecated
Post
template
Description of improvements
- Explicit return values
- Simplify state machine
- Staker no longer able to update metadata for
SimpleGriefing
andCountdownGriefing
- Add NATSPEC documentation
- Add state machine and access control graphs in header comment of relevant contracts
- Prevent frontrunning on salty deployments
Contracts
This section contains all the active contract addresses for this version. Contracts from previous releases excluded from this release are officially deprecated.
NMR Token
Contract | Mainnet | Rinkeby |
---|---|---|
NMR / MockNMR | 0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671 | 0x1A758E75d1082BAab0A934AFC7ED27Dbf6282373 |
Registries
Factories
Templates
NPM packages update
Small update to javascript libraries:
- added v1.2.x support to testenv
- added local graphQL deployment to testenv
- improved multihash support in crypto-ipfs
Factory Upgrade
This release deploys upgraded versions of factories to provide additional features and gas optimizations. v1.0.1 factories will be deprecated in the coming weeks.
Changelog
Agreements
- OneWayGriefing agreement is deprecated in favour of CountdownGriefing
- CountdownGriefing now allows the counterparty to release the staker's tokens
- Punishments now require passing in the current stake to prevent user errors
Posts
- Feed now stores the proofhash locally to optimize gas
- Additional operator functionality added to Feed and Post
Factories
- Updated to solidity compiler 0.5.11
- Factories now all use the standard
create()
andcreateSalty()
functions - Templates now all emit an
event Initialized()
which logs the initialization parameters - Metadata is removed from state to optimize gas
Gas Benchmarks
Instance | v1.0.0 | v1.1.0 |
---|---|---|
Post | 419,581 | 298,153 |
Feed | 309,386 | 252,588 |
ProofHash | 463,368 | 28,288 |
SimpleGriefing | na | 328,835 |
CountdownGriefing | 375,177 | 351,287 |
Contracts
Rinkeby Redeployment
This is a minor release to provide better testing functionality.
Changelog
- Contracts have been redeployed to rinkeby to expose full MockNMR interface.
- Local ganache deployment scripts updated to allow for use without .env setup.