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()` and `createSalty()` 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
| Contract | Mainnet | Rinkeby |
| - | - | - |
| [NMR](https://github.com/numerai/contract) / [MockNMR](./contracts/helpers/mock/MockNMR.sol) | [0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671](https://etherscan.io/address/0x1776e1f26f98b1a5df9cd347953a26dd3cb46671) | [0x1A758E75d1082BAab0A934AFC7ED27Dbf6282373](https://rinkeby.etherscan.io/address/0x1A758E75d1082BAab0A934AFC7ED27Dbf6282373) |
| [Erasure_Posts](./contracts/registries/Erasure_Posts.sol) | [0x348FA9DcFf507B81C7A1d7981244eA92E8c6Af29](https://etherscan.io/address/0x348FA9DcFf507B81C7A1d7981244eA92E8c6Af29) | [0x57EB544cCA126D356FFe19D732A79Db494ba09b1](https://rinkeby.etherscan.io/address/0x57EB544cCA126D356FFe19D732A79Db494ba09b1) |
| [Erasure_Agreements](./contracts/registries/Erasure_Agreements.sol) | [0xa6cf4Bf00feF8866e9F3f61C972bA7C687C6eDbF](https://etherscan.io/address/0xa6cf4Bf00feF8866e9F3f61C972bA7C687C6eDbF) | [0xf46D714e39b742E22eB0363FE5D727E3C0a8BEcC](https://rinkeby.etherscan.io/address/0xf46D714e39b742E22eB0363FE5D727E3C0a8BEcC) |
| [Erasure_Users](./contracts/registries/Erasure_Users.sol) | [0x789D0082B20A929D6fB64EB4c10c68e827AAB7aB](https://etherscan.io/address/0x789D0082B20A929D6fB64EB4c10c68e827AAB7aB) | [0xbF7339e68b81a1261FDF46FDBe916cd88f3609c0](https://rinkeby.etherscan.io/address/0xbF7339e68b81a1261FDF46FDBe916cd88f3609c0) |
| [Post Template](./contracts/posts/Post.sol) | [0x7f858F0726af676e00cB76459D984463ee1307c2](https://etherscan.io/address/0x7f858F0726af676e00cB76459D984463ee1307c2) | [0x223EbC4e00eD605cC580E6B547aDbf7300B4BF4D](https://rinkeby.etherscan.io/address/0x223EbC4e00eD605cC580E6B547aDbf7300B4BF4D) |
| [Post Factory](./contracts/posts/Post_Factory.sol) | [0x41b65f0153410E42ec26eaBa71F9f8f133282B54](https://etherscan.io/address/0x41b65f0153410E42ec26eaBa71F9f8f133282B54) | [0xbd1E2C679ED25485e27e5AD8eD3a2776769d22aF](https://rinkeby.etherscan.io/address/0xbd1E2C679ED25485e27e5AD8eD3a2776769d22aF) |
| [Feed Template](./contracts/posts/Feed.sol) | [0xA411eB36538a2Ae060A766221E43A94205460369](https://etherscan.io/address/0xA411eB36538a2Ae060A766221E43A94205460369) | [0x7aA06aa3b6D5476c0CE720231E2Add74164f78CD](https://rinkeby.etherscan.io/address/0x7aA06aa3b6D5476c0CE720231E2Add74164f78CD) |
| [Feed Factory](./contracts/posts/Feed_Factory.sol) | [0x206780873974878722Ed156544589701832eE920](https://etherscan.io/address/0x206780873974878722Ed156544589701832eE920) | [0xa3140871346f4efF924dc874EC6AfD4573232F03](https://rinkeby.etherscan.io/address/0xa3140871346f4efF924dc874EC6AfD4573232F03) |
| [SimpleGriefing Template](./contracts/agreements/SimpleGriefing.sol) | [0xC04Bd2f0d484b7e0156b21c98B2923Ca8b9ce149](https://etherscan.io/address/0xC04Bd2f0d484b7e0156b21c98B2923Ca8b9ce149) | [0x183347dA3DABb0F8a43a49E4Df93C957030f6780](https://rinkeby.etherscan.io/address/0x183347dA3DABb0F8a43a49E4Df93C957030f6780) |
| [SimpleGriefing Factory](./contracts/agreements/SimpleGriefing_Factory.sol) | [0x67ef9503cf0350dB52130Ef2Ad053E868Bc90FC7](https://etherscan.io/address/0x67ef9503cf0350dB52130Ef2Ad053E868Bc90FC7) | [0x896E5C478c297092965441A62d0a0B0A4A4CC6E8](https://rinkeby.etherscan.io/address/0x896E5C478c297092965441A62d0a0B0A4A4CC6E8) |
| [CountdownGriefing Template](./contracts/agreements/CountdownGriefing.sol) | [0x89a2958544f86Cc57828dbBf31E2C786f20Fe0a0](https://etherscan.io/address/0x89a2958544f86Cc57828dbBf31E2C786f20Fe0a0) | [0xb84d62fbd39bf3504d197D2405FCD5b86427D35B](https://rinkeby.etherscan.io/address/0xb84d62fbd39bf3504d197D2405FCD5b86427D35B) |
| [CountdownGriefing Factory](./contracts/agreements/CountdownGriefing_Factory.sol) | [0xd330e5e9670738D36E31dcb1fde0c08B1895a0b1](https://etherscan.io/address/0xd330e5e9670738D36E31dcb1fde0c08B1895a0b1) | [0xab005C507c877696033e60BB99cAc9B9ADD6A741](https://rinkeby.etherscan.io/address/0xab005C507c877696033e60BB99cAc9B9ADD6A741) |