Skip to content

Commit

Permalink
chore: organize changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Jan 24, 2024
1 parent 7867b74 commit d8561fe
Show file tree
Hide file tree
Showing 50 changed files with 274 additions and 155 deletions.
8 changes: 8 additions & 0 deletions onchain/rollups/.changeset/calm-panthers-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@cartesi/rollups": major
---

Modified the `OutputValidityProof` struct:

- Collapsed the `vouchersEpochRootHash` and `noticesEpochRootHash` fields into a single `outputsEpochRootHash` field
- Added an `inputRange` field
7 changes: 7 additions & 0 deletions onchain/rollups/.changeset/chilly-cherries-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cartesi/rollups": major
---

Modified the ERC-20 deposit input:

- Removed the `success` field, because the ERC-20 portal now only adds inputs for successful deposits.
9 changes: 9 additions & 0 deletions onchain/rollups/.changeset/clean-gorillas-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@cartesi/rollups": major
---

Modified the `CanonicalMachine` library:

- Renamed the `INPUT_MAX_SIZE` constant as `INPUT_PAYLOAD_MAX_SIZE`.
- Collapsed the `VOUCHER_METADATA_LOG2_SIZE` and `NOTICE_METADATA_LOG2_SIZE` constants into a single `OUTPUT_METADATA_LOG2_SIZE` constant (with the same value).
- Collapsed the `EPOCH_VOUCHER_LOG2_SIZE` and `EPOCH_NOTICE_LOG2_SIZE` constants into a single `EPOCH_OUTPUT_LOG2_SIZE` constant (with the same value).
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/cool-suits-lick.md

This file was deleted.

9 changes: 0 additions & 9 deletions onchain/rollups/.changeset/few-worms-clap.md

This file was deleted.

11 changes: 11 additions & 0 deletions onchain/rollups/.changeset/fifty-keys-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@cartesi/rollups": major
---

Modified the `EtherPortal` contract:

- Made it support the following interfaces (as in EIP-165):

- `IERC165`
- `IInputRelay`
- `IEtherPortal`
9 changes: 9 additions & 0 deletions onchain/rollups/.changeset/fuzzy-trainers-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@cartesi/rollups": major
---

Modified the `AbstractConsensus` contract:

- Removed the `join` function
- Implemented the `getEpochHash` function
- Added an internal `_acceptClaim` function
7 changes: 0 additions & 7 deletions onchain/rollups/.changeset/giant-gorillas-flash.md

This file was deleted.

5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/grumpy-cooks-watch.md

This file was deleted.

12 changes: 12 additions & 0 deletions onchain/rollups/.changeset/healthy-wasps-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@cartesi/rollups": minor
---

Added:

- an `Outputs` interface
- an `InputRange` struct
- a `LibInputRange` library
- a `Quorum` contract (which implements the `IConsensus` interface)
- a `QuorumFactory` contract
- an `IQuorumFactory` interface
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/hungry-months-walk.md

This file was deleted.

7 changes: 0 additions & 7 deletions onchain/rollups/.changeset/khaki-ladybugs-begin.md

This file was deleted.

7 changes: 7 additions & 0 deletions onchain/rollups/.changeset/lazy-gorillas-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cartesi/rollups": major
---

Modified the `IInputRelay` interface:

- Made it inherit from `IERC165`
11 changes: 11 additions & 0 deletions onchain/rollups/.changeset/lemon-rivers-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@cartesi/rollups": major
---

Modified the `ERC1155BatchPortal` contract:

- Made it support the following interfaces (as in EIP-165):

- `IERC165`
- `IInputRelay`
- `IERC1155BatchPortal`
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/lovely-carpets-change.md

This file was deleted.

7 changes: 7 additions & 0 deletions onchain/rollups/.changeset/lovely-meals-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cartesi/rollups": major
---

Modified the `IEtherPortal` interface:

- Added an `EtherTransferFailed` error.
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/lucky-kings-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/mean-cars-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/modern-rats-build.md

This file was deleted.

7 changes: 7 additions & 0 deletions onchain/rollups/.changeset/moody-hornets-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cartesi/rollups": major
---

Modified the `IDAppAddressRelay` interface:

- Renamed it as `IApplicationAddressRelay`.
13 changes: 13 additions & 0 deletions onchain/rollups/.changeset/old-rabbits-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@cartesi/rollups": major
---

Modified the `DAppAddressRelay` contract:

- Renamed it as `ApplicationAddressRelay`.

- Made it support the following interfaces (as in EIP-165):

- `IERC165`
- `IInputRelay`
- `IApplicationAddressRelay`
5 changes: 5 additions & 0 deletions onchain/rollups/.changeset/orange-poems-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/rollups": major
---

Moved `Proof` to a dedicated file in the `common` directory.
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/pink-penguins-kiss.md

This file was deleted.

9 changes: 0 additions & 9 deletions onchain/rollups/.changeset/plenty-feet-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/polite-shrimps-look.md

This file was deleted.

7 changes: 0 additions & 7 deletions onchain/rollups/.changeset/proud-news-invent.md

This file was deleted.

5 changes: 5 additions & 0 deletions onchain/rollups/.changeset/purple-pots-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/rollups": major
---

Moved `OutputValidityProof` to a dedicated file in the `common` directory.
12 changes: 12 additions & 0 deletions onchain/rollups/.changeset/quiet-guests-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@cartesi/rollups": major
---

Modified the `ICartesiDAppFactory` interface:

- Renamed it as `IApplicationFactory`.

- Added the following parameters to its functions and events:

- `inputBox`
- `inputRelays`
17 changes: 17 additions & 0 deletions onchain/rollups/.changeset/red-wasps-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@cartesi/rollups": major
---

Modified the `CartesiDApp` contract:

- Renamed it as `Application`.

- Added the following parameters to its constructor:

- `inputBox`
- `inputRelays`

- Made it support the following interfaces (as in EIP-165):

- `IApplication`
- `IERC721Receiver`
7 changes: 0 additions & 7 deletions onchain/rollups/.changeset/rotten-parents-unite.md

This file was deleted.

11 changes: 11 additions & 0 deletions onchain/rollups/.changeset/rude-scissors-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@cartesi/rollups": major
---

Modified the `ERC1155SinglePortal` contract:

- Made it support the following interfaces (as in EIP-165):

- `IERC165`
- `IInputRelay`
- `IERC1155SinglePortal`
13 changes: 13 additions & 0 deletions onchain/rollups/.changeset/seven-teachers-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@cartesi/rollups": major
---

Removed:

- the `History` contract.
- the `IHistory` interface.
- the `HistoryFactory` contract.
- the `IHistoryFactory` interface.
- the `AuthorityHistoryPairFactory` contract.
- the `IAuthorityHistoryPairFactory` interface.
- the `OutputEncoding` library.
5 changes: 0 additions & 5 deletions onchain/rollups/.changeset/sharp-yaks-sing.md

This file was deleted.

17 changes: 0 additions & 17 deletions onchain/rollups/.changeset/short-bears-flash.md

This file was deleted.

41 changes: 41 additions & 0 deletions onchain/rollups/.changeset/silly-islands-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
"@cartesi/rollups": major
---

Modified the `ICartesiDApp` interface:

- Renamed it as `IApplication`.

- Made it inherit from:

- `IERC721Receiver`.
- `IERC1155Receiver` (which inherits from `IERC165`).

- Modified the `executeVoucher` function:

- Errors raised by low-level calls are bubbled up.
- Changed the type of the `proof` parameter to `OutputValidityProof`.
- Removed the boolean return value.

- Modified the `validateNotice` function:

- Changed type of the `proof` parameter to `OutputValidityProof`.
- Removed the boolean return value.

- Modified the `VoucherExecuted` event:

- Split the `voucherId` parameter into `inputIndex` and `outputIndexWithinInput` parameters.

- Added a `getInputBox` function.

- Added a `getInputRelays` function.

- Added an `InputIndexOutOfRange` error.

- Added a `VoucherReexecutionNotAllowed` error.

- Added an `IncorrectEpochHash` error.

- Added an `IncorrectOutputsEpochRootHash` error.

- Added an `IncorrectOutputHashesRootHash` error.
7 changes: 7 additions & 0 deletions onchain/rollups/.changeset/slow-comics-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@cartesi/rollups": major
---

Modified the `CartesiDAppFactory` contract:

- Renamed it as `ApplicationFactory`.
10 changes: 10 additions & 0 deletions onchain/rollups/.changeset/smooth-ducks-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@cartesi/rollups": major
---

Modified the `InputRelay` contract:

- Made it support the following interfaces (as in EIP-165):

- `IERC165`
- `IInputRelay`
16 changes: 16 additions & 0 deletions onchain/rollups/.changeset/spotty-peas-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@cartesi/rollups": major
---

Modified the `Authority` contract:

- Removed the `AuthorityWithdrawalFailed` error
- Removed the `NewHistory` event
- Removed the `getClaim` function
- Removed the `getHistory` function
- Removed the `join` function
- Removed the `migrateHistoryToConsensus` function
- Removed the `setHistory` function
- Removed the `submitClaim(bytes)` function
- Removed the `withdrawERC20Tokens` function
- Implemented the `submitClaim(address,(uint64,uint64),bytes32)` function
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@cartesi/rollups": major
---

Completely redesigned the `IConsensus` interface:
Completely modified the `IConsensus` interface:

- Removed the `join` function
- Removed the `getClaim` function
Expand Down
Loading

0 comments on commit d8561fe

Please sign in to comment.