Skip to content

Commit

Permalink
Merge branch 'main' into deprecate_supply_royalty
Browse files Browse the repository at this point in the history
  • Loading branch information
kulkarohan committed Oct 13, 2023
2 parents 24bea9e + 64f028a commit a1716d2
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .changeset/odd-poems-lie.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/1155-contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zoralabs/zora-1155-contracts

## 2.0.4

### Patch Changes

- 64da698: Exporting abi

## 2.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/zora-1155-contracts",
"version": "2.0.3",
"version": "2.0.4",
"repository": "git@github.com:ourzora/zora-protocol.git",
"author": "Iain <iain@zora.co>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/1155-contracts/src/version/ContractVersionBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated by code; do not manually update
// Last updated on 2023-10-05T22:37:20.442Z
// Last updated on 2023-10-13T15:34:50.319Z
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

Expand All @@ -10,6 +10,6 @@ import {IVersionedContract} from "../interfaces/IVersionedContract.sol";
contract ContractVersionBase is IVersionedContract {
/// @notice The version of the contract
function contractVersion() external pure override returns (string memory) {
return "2.0.3";
return "2.0.4";
}
}
34 changes: 34 additions & 0 deletions packages/protocol-rewards/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Zora Protocol Rewards

Zora is about bringing creativity onchain. Protocol Rewards is our latest offering for creators and developers to earn from their contributions to our growing ecosystem.

This repository features:
- The `ERC721Rewards` and `ERC1155Rewards` abstract smart contracts which handle reward computation and routing for Zora [ERC-721](https://github.com/ourzora/zora-drops-contracts) and [ERC-1155](https://github.com/ourzora/zora-1155-contracts) NFT mints
- The `ProtocolRewards` singleton smart contract used to deposit and withdraw rewards

Documentation is available at [docs.zora.co](https://docs.zora.co).

## Implementation Caveats

The `ProtocolRewards` contract has a implementation caveat. If you send any value to a zero (`address(0)`) address in `depositRewards`, that value is implicitly burnt by being locked in the contract at the zero address. The function will not revert or redirect those funds as currently designed. We may re-visit this design in the future but for the release of v1.1 this is the current and expected behavior.

## Deployed Addresses

`ProtocolRewards` v1.1 is deterministically deployed at 0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B.

Current Supported Chains:
- Zora Mainnet
- Zora Goerli
- Ethereum Mainnet
- Ethereum Goerli
- OP Mainnet
- OP Goerli
- Base Mainnet
- Base Goerli

## Install

To interact with the `ProtocolRewards` contract:
```sh
yarn add @zoralabs/protocol-rewards
```

0 comments on commit a1716d2

Please sign in to comment.