Skip to content

Commit

Permalink
Version Packages (ourzora#304)
Browse files Browse the repository at this point in the history
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.


# Releases
## @zoralabs/[email protected]

### Minor Changes

-   50a4e09: - 1155 contracts use the MINTs contracts to get the mint fee, mint, and redeem a mint ticket upon minting.
    -   `ZoraCreator1155Impl` adds a new method `mintWithMints` that allows for minting with MINTs that are already owned.

### Patch Changes

-   50a4e09: - ZoraCreator1155Impl contract no longer has public facing function `computeFreeMintRewards` and `computePaidMintRewards`
    -   protocol rewards calculation logic has been refactored and moved from the RewardSplits contract to the ZoraCreator1155Impl itself to save on contract size.
    -   ZoraCreator1155Impl rewards splits are percentage based instead of a fixed value. This % is calculated based on the total reward value. And is based on a % value nearly identical to the previous fixed value.
-   50a4e09: remove `adminMintBatch` to save contract size
-   50a4e09: - To support the MINTs contract passing the first minter as an argument to `premintV2WithSignerContract` - we add the field `firstMinter` to `premintV2WithSignerContract`, and then in the 1155 check that the firstMinter argument is not address(0) since it now can be passed in manually.

## @zoralabs/[email protected]

### Minor Changes

-   50a4e09: - 1155 contracts use the MINTs contracts to get the mint fee, mint, and redeem a mint ticket upon minting.
    -   `ZoraCreator1155Impl` adds a new method `mintWithMints` that allows for minting with MINTs that are already owned.

### Patch Changes

-   50a4e09: - To support the MINTs contract passing the first minter as an argument to `premintV2WithSignerContract` - we add the field `firstMinter` to `premintV2WithSignerContract`, and then in the 1155 check that the firstMinter argument is not address(0) since it now can be passed in manually.

## @zoralabs/[email protected]

### Patch Changes

-   042edbe: Chain ids in published protocol-deployments package are now numbers instead of strings
-   50a4e09: Includes MINTs contracts abis and addresses

## @zoralabs/[email protected]

### Patch Changes

-   50a4e09: Added sdk method to get total MINT balance
-   Updated dependencies [042edbe]
-   Updated dependencies [50a4e09]
    -   @zoralabs/[email protected]
  • Loading branch information
github-actions[bot] authored Apr 8, 2024
1 parent 7aff93d commit 5c436fb
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 49 deletions.
5 changes: 0 additions & 5 deletions .changeset/afraid-months-appear.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/bright-socks-shake.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/brown-insects-rush.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-flies-hunt.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/mean-bugs-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-books-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-suns-look.md

This file was deleted.

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

## 2.9.0

### Minor Changes

- 50a4e09: - Zora Creator 1155 contracts use the MINTs contracts to get the mint fee, mint, and redeem a mint ticket upon minting.
- `ZoraCreator1155Impl` adds a new method `mintWithMints` that allows for minting with MINTs that are already owned.
- 50a4e09: - Zora Creator 1155 contracts no longer have a public facing function `computeFreeMintRewards` and `computePaidMintRewards`
- protocol rewards calculation logic has been refactored and moved from the RewardSplits contract to the ZoraCreator1155Impl itself to save on contract size.
- ZoraCreator1155Impl rewards splits are percentage based instead of a fixed value. This % is calculated based on the total reward value. And is based on a % value nearly identical to the previous fixed value.
- 50a4e09: remove `adminMintBatch` to save contract size
- 50a4e09: - To support the MINTs contract passing the first minter as an argument to `premintV2WithSignerContract` - we add the field `firstMinter` to `premintV2WithSignerContract`, and then in the 1155 check that the firstMinter argument is not address(0) since it now can be passed in manually.

## 2.8.1

### 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.8.1",
"version": "2.9.0",
"repository": "[email protected]:ourzora/zora-protocol.git",
"author": "Iain <[email protected]>",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import {IVersionedContract} from "@zoralabs/shared-contracts/interfaces/IVersion
contract ContractVersionBase is IVersionedContract {
/// @notice The version of the contract
function contractVersion() external pure override returns (string memory) {
return "2.8.1";
return "2.9.0";
}
}
12 changes: 12 additions & 0 deletions packages/mints/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# @zoralabs/mints-contracts

## 0.1.0

### Minor Changes

- 50a4e09: - 1155 contracts use the MINTs contracts to get the mint fee, mint, and redeem a mint ticket upon minting.
- `ZoraCreator1155Impl` adds a new method `mintWithMints` that allows for minting with MINTs that are already owned.

### Patch Changes

- 50a4e09: - To support the MINTs contract passing the first minter as an argument to `premintV2WithSignerContract` - we add the field `firstMinter` to `premintV2WithSignerContract`, and then in the 1155 check that the firstMinter argument is not address(0) since it now can be passed in manually.
2 changes: 1 addition & 1 deletion packages/mints/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/mints-contracts",
"version": "0.0.2",
"version": "0.1.0",
"repository": "https://github.com/ourzora/zora-protocol.git",
"license": "MIT",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/mints/src/version/ContractVersionBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import {IVersionedContract} from "@zoralabs/shared-contracts/interfaces/IVersion
contract ContractVersionBase is IVersionedContract {
/// @notice The version of the contract
function contractVersion() external pure override returns (string memory) {
return "0.1.0-DEV.2";
return "0.1.0";
}
}
7 changes: 7 additions & 0 deletions packages/protocol-deployments/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @zoralabs/protocol-deployments

## 0.1.5

### Patch Changes

- 042edbe: Chain ids in published protocol-deployments package are now numbers instead of strings
- 50a4e09: Includes MINTs contracts abis and addresses

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-deployments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/protocol-deployments",
"version": "0.1.4",
"version": "0.1.5",
"repository": "https://github.com/ourzora/zora-protocol",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-rewards/test/unit/ERC1155Rewards.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ contract ERC1155RewardsTest is ProtocolRewardsTest {
}

function testRemainderSentToZora(uint256 rewardPrice, uint256 numTokens) public {
vm.assume(rewardPrice > 0.0000002 ether && rewardPrice < 2 ether);
vm.assume(rewardPrice > 0.0000002 ether && rewardPrice < 100 ether);
vm.assume(numTokens > 0 && numTokens < 100_000);

uint256 totalReward = mockERC1155.computeTotalReward(rewardPrice, numTokens);
Expand Down
9 changes: 9 additions & 0 deletions packages/protocol-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @zoralabs/protocol-sdk

## 0.5.8

### Patch Changes

- 50a4e09: Added sdk method to get total MINT balance
- Updated dependencies [042edbe]
- Updated dependencies [50a4e09]
- @zoralabs/protocol-deployments@0.1.5

## 0.5.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/protocol-sdk",
"version": "0.5.7",
"version": "0.5.8",
"repository": "https://github.com/ourzora/zora-protocol",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit 5c436fb

Please sign in to comment.