From d8561fe32cc018e36ce64df332d0f71872341e56 Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Tue, 23 Jan 2024 16:38:21 -0300 Subject: [PATCH] chore: organize changesets --- .../.changeset/calm-panthers-retire.md | 8 ++++ .../.changeset/chilly-cherries-join.md | 7 ++++ .../.changeset/clean-gorillas-occur.md | 9 ++++ onchain/rollups/.changeset/cool-suits-lick.md | 5 --- onchain/rollups/.changeset/few-worms-clap.md | 9 ---- .../rollups/.changeset/fifty-keys-tickle.md | 11 +++++ .../rollups/.changeset/fuzzy-trainers-tan.md | 9 ++++ .../.changeset/giant-gorillas-flash.md | 7 ---- .../rollups/.changeset/grumpy-cooks-watch.md | 5 --- .../rollups/.changeset/healthy-wasps-shout.md | 12 ++++++ .../rollups/.changeset/hungry-months-walk.md | 5 --- .../.changeset/khaki-ladybugs-begin.md | 7 ---- .../.changeset/lazy-gorillas-scream.md | 7 ++++ .../rollups/.changeset/lemon-rivers-nail.md | 11 +++++ .../.changeset/lovely-carpets-change.md | 5 --- .../rollups/.changeset/lovely-meals-wink.md | 7 ++++ .../rollups/.changeset/lucky-kings-switch.md | 5 --- .../rollups/.changeset/mean-cars-applaud.md | 5 --- .../rollups/.changeset/modern-rats-build.md | 5 --- .../rollups/.changeset/moody-hornets-tell.md | 7 ++++ .../rollups/.changeset/old-rabbits-collect.md | 13 ++++++ ...n-eels-walk.md => olive-steaks-explode.md} | 0 .../rollups/.changeset/orange-poems-fry.md | 5 +++ .../rollups/.changeset/pink-penguins-kiss.md | 5 --- .../rollups/.changeset/plenty-feet-help.md | 9 ---- .../rollups/.changeset/polite-shrimps-look.md | 5 --- .../rollups/.changeset/proud-news-invent.md | 7 ---- .../rollups/.changeset/purple-pots-attack.md | 5 +++ .../rollups/.changeset/quiet-guests-greet.md | 12 ++++++ .../rollups/.changeset/red-wasps-report.md | 17 ++++++++ .../.changeset/rotten-parents-unite.md | 7 ---- .../rollups/.changeset/rude-scissors-try.md | 11 +++++ .../.changeset/seven-teachers-behave.md | 13 ++++++ onchain/rollups/.changeset/sharp-yaks-sing.md | 5 --- .../rollups/.changeset/short-bears-flash.md | 17 -------- .../rollups/.changeset/silly-islands-end.md | 41 +++++++++++++++++++ .../rollups/.changeset/slow-comics-fold.md | 7 ++++ .../rollups/.changeset/smooth-ducks-trade.md | 10 +++++ .../rollups/.changeset/spotty-peas-speak.md | 16 ++++++++ ...ree-pigs-flow.md => strange-foxes-melt.md} | 2 +- ...lies-hide.md => strong-countries-check.md} | 2 +- .../rollups/.changeset/stupid-doors-drop.md | 5 --- .../rollups/.changeset/sweet-clouds-smoke.md | 10 ----- .../rollups/.changeset/sweet-pianos-exist.md | 9 ---- .../rollups/.changeset/thin-wolves-give.md | 10 ----- .../.changeset/tough-carrots-invent.md | 7 ++++ .../rollups/.changeset/tough-shoes-taste.md | 6 --- onchain/rollups/.changeset/two-mails-marry.md | 11 +++++ onchain/rollups/.changeset/violet-laws-sin.md | 5 +++ onchain/rollups/.changeset/wise-owls-push.md | 11 +++++ 50 files changed, 274 insertions(+), 155 deletions(-) create mode 100644 onchain/rollups/.changeset/calm-panthers-retire.md create mode 100644 onchain/rollups/.changeset/chilly-cherries-join.md create mode 100644 onchain/rollups/.changeset/clean-gorillas-occur.md delete mode 100644 onchain/rollups/.changeset/cool-suits-lick.md delete mode 100644 onchain/rollups/.changeset/few-worms-clap.md create mode 100644 onchain/rollups/.changeset/fifty-keys-tickle.md create mode 100644 onchain/rollups/.changeset/fuzzy-trainers-tan.md delete mode 100644 onchain/rollups/.changeset/giant-gorillas-flash.md delete mode 100644 onchain/rollups/.changeset/grumpy-cooks-watch.md create mode 100644 onchain/rollups/.changeset/healthy-wasps-shout.md delete mode 100644 onchain/rollups/.changeset/hungry-months-walk.md delete mode 100644 onchain/rollups/.changeset/khaki-ladybugs-begin.md create mode 100644 onchain/rollups/.changeset/lazy-gorillas-scream.md create mode 100644 onchain/rollups/.changeset/lemon-rivers-nail.md delete mode 100644 onchain/rollups/.changeset/lovely-carpets-change.md create mode 100644 onchain/rollups/.changeset/lovely-meals-wink.md delete mode 100644 onchain/rollups/.changeset/lucky-kings-switch.md delete mode 100644 onchain/rollups/.changeset/mean-cars-applaud.md delete mode 100644 onchain/rollups/.changeset/modern-rats-build.md create mode 100644 onchain/rollups/.changeset/moody-hornets-tell.md create mode 100644 onchain/rollups/.changeset/old-rabbits-collect.md rename onchain/rollups/.changeset/{lemon-eels-walk.md => olive-steaks-explode.md} (100%) create mode 100644 onchain/rollups/.changeset/orange-poems-fry.md delete mode 100644 onchain/rollups/.changeset/pink-penguins-kiss.md delete mode 100644 onchain/rollups/.changeset/plenty-feet-help.md delete mode 100644 onchain/rollups/.changeset/polite-shrimps-look.md delete mode 100644 onchain/rollups/.changeset/proud-news-invent.md create mode 100644 onchain/rollups/.changeset/purple-pots-attack.md create mode 100644 onchain/rollups/.changeset/quiet-guests-greet.md create mode 100644 onchain/rollups/.changeset/red-wasps-report.md delete mode 100644 onchain/rollups/.changeset/rotten-parents-unite.md create mode 100644 onchain/rollups/.changeset/rude-scissors-try.md create mode 100644 onchain/rollups/.changeset/seven-teachers-behave.md delete mode 100644 onchain/rollups/.changeset/sharp-yaks-sing.md delete mode 100644 onchain/rollups/.changeset/short-bears-flash.md create mode 100644 onchain/rollups/.changeset/silly-islands-end.md create mode 100644 onchain/rollups/.changeset/slow-comics-fold.md create mode 100644 onchain/rollups/.changeset/smooth-ducks-trade.md create mode 100644 onchain/rollups/.changeset/spotty-peas-speak.md rename onchain/rollups/.changeset/{three-pigs-flow.md => strange-foxes-melt.md} (85%) rename onchain/rollups/.changeset/{early-lies-hide.md => strong-countries-check.md} (71%) delete mode 100644 onchain/rollups/.changeset/stupid-doors-drop.md delete mode 100644 onchain/rollups/.changeset/sweet-clouds-smoke.md delete mode 100644 onchain/rollups/.changeset/sweet-pianos-exist.md delete mode 100644 onchain/rollups/.changeset/thin-wolves-give.md create mode 100644 onchain/rollups/.changeset/tough-carrots-invent.md delete mode 100644 onchain/rollups/.changeset/tough-shoes-taste.md create mode 100644 onchain/rollups/.changeset/two-mails-marry.md create mode 100644 onchain/rollups/.changeset/violet-laws-sin.md create mode 100644 onchain/rollups/.changeset/wise-owls-push.md diff --git a/onchain/rollups/.changeset/calm-panthers-retire.md b/onchain/rollups/.changeset/calm-panthers-retire.md new file mode 100644 index 00000000..434fc9a1 --- /dev/null +++ b/onchain/rollups/.changeset/calm-panthers-retire.md @@ -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 diff --git a/onchain/rollups/.changeset/chilly-cherries-join.md b/onchain/rollups/.changeset/chilly-cherries-join.md new file mode 100644 index 00000000..d042e40f --- /dev/null +++ b/onchain/rollups/.changeset/chilly-cherries-join.md @@ -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. diff --git a/onchain/rollups/.changeset/clean-gorillas-occur.md b/onchain/rollups/.changeset/clean-gorillas-occur.md new file mode 100644 index 00000000..e272ee9d --- /dev/null +++ b/onchain/rollups/.changeset/clean-gorillas-occur.md @@ -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). diff --git a/onchain/rollups/.changeset/cool-suits-lick.md b/onchain/rollups/.changeset/cool-suits-lick.md deleted file mode 100644 index c413d02c..00000000 --- a/onchain/rollups/.changeset/cool-suits-lick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Errors raised by vouchers are now propagated to the user. diff --git a/onchain/rollups/.changeset/few-worms-clap.md b/onchain/rollups/.changeset/few-worms-clap.md deleted file mode 100644 index d62fc70b..00000000 --- a/onchain/rollups/.changeset/few-worms-clap.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed the following contracts (and their interfaces): - -- `History` -- `HistoryFactory` -- `AuthorityHistoryPairFactory` diff --git a/onchain/rollups/.changeset/fifty-keys-tickle.md b/onchain/rollups/.changeset/fifty-keys-tickle.md new file mode 100644 index 00000000..92906f37 --- /dev/null +++ b/onchain/rollups/.changeset/fifty-keys-tickle.md @@ -0,0 +1,11 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `EtherPortal` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` + - `IEtherPortal` diff --git a/onchain/rollups/.changeset/fuzzy-trainers-tan.md b/onchain/rollups/.changeset/fuzzy-trainers-tan.md new file mode 100644 index 00000000..920afbaf --- /dev/null +++ b/onchain/rollups/.changeset/fuzzy-trainers-tan.md @@ -0,0 +1,9 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `AbstractConsensus` contract: + +- Removed the `join` function +- Implemented the `getEpochHash` function +- Added an internal `_acceptClaim` function diff --git a/onchain/rollups/.changeset/giant-gorillas-flash.md b/onchain/rollups/.changeset/giant-gorillas-flash.md deleted file mode 100644 index 75cea9b7..00000000 --- a/onchain/rollups/.changeset/giant-gorillas-flash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed support to Goerli testnets (L1 and L2s). -Goerli has been deprecated by the Ethereum Foundation in 2023. -The EF advises users of Goerli to migrate their applications to Sepolia, which we support. diff --git a/onchain/rollups/.changeset/grumpy-cooks-watch.md b/onchain/rollups/.changeset/grumpy-cooks-watch.md deleted file mode 100644 index 16b1003c..00000000 --- a/onchain/rollups/.changeset/grumpy-cooks-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Moved `OutputValidityProof` from `contracts/library/LibOutputValidation.sol` to `contracts/common/OutputValidityProof.sol`. diff --git a/onchain/rollups/.changeset/healthy-wasps-shout.md b/onchain/rollups/.changeset/healthy-wasps-shout.md new file mode 100644 index 00000000..2dfa1b12 --- /dev/null +++ b/onchain/rollups/.changeset/healthy-wasps-shout.md @@ -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 diff --git a/onchain/rollups/.changeset/hungry-months-walk.md b/onchain/rollups/.changeset/hungry-months-walk.md deleted file mode 100644 index d355c291..00000000 --- a/onchain/rollups/.changeset/hungry-months-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added `EtherTransferFailed` error to `IEtherPortal` interface. diff --git a/onchain/rollups/.changeset/khaki-ladybugs-begin.md b/onchain/rollups/.changeset/khaki-ladybugs-begin.md deleted file mode 100644 index a8ea56bd..00000000 --- a/onchain/rollups/.changeset/khaki-ladybugs-begin.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Changed the signature of the `VoucherExecuted` event. - -- Replaced `voucherPosition` parameter with `inputIndex` and `outputIndexWithinInput` diff --git a/onchain/rollups/.changeset/lazy-gorillas-scream.md b/onchain/rollups/.changeset/lazy-gorillas-scream.md new file mode 100644 index 00000000..fd58b2b8 --- /dev/null +++ b/onchain/rollups/.changeset/lazy-gorillas-scream.md @@ -0,0 +1,7 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `IInputRelay` interface: + +- Made it inherit from `IERC165` diff --git a/onchain/rollups/.changeset/lemon-rivers-nail.md b/onchain/rollups/.changeset/lemon-rivers-nail.md new file mode 100644 index 00000000..d7cef9bb --- /dev/null +++ b/onchain/rollups/.changeset/lemon-rivers-nail.md @@ -0,0 +1,11 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `ERC1155BatchPortal` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` + - `IERC1155BatchPortal` diff --git a/onchain/rollups/.changeset/lovely-carpets-change.md b/onchain/rollups/.changeset/lovely-carpets-change.md deleted file mode 100644 index d41445dd..00000000 --- a/onchain/rollups/.changeset/lovely-carpets-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added `Quorum` consensus contract. diff --git a/onchain/rollups/.changeset/lovely-meals-wink.md b/onchain/rollups/.changeset/lovely-meals-wink.md new file mode 100644 index 00000000..fbe2ab60 --- /dev/null +++ b/onchain/rollups/.changeset/lovely-meals-wink.md @@ -0,0 +1,7 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `IEtherPortal` interface: + +- Added an `EtherTransferFailed` error. diff --git a/onchain/rollups/.changeset/lucky-kings-switch.md b/onchain/rollups/.changeset/lucky-kings-switch.md deleted file mode 100644 index 2038245f..00000000 --- a/onchain/rollups/.changeset/lucky-kings-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed the boolean return value of functions `executeVoucher` and `validateNotice`. diff --git a/onchain/rollups/.changeset/mean-cars-applaud.md b/onchain/rollups/.changeset/mean-cars-applaud.md deleted file mode 100644 index fc5c3ee9..00000000 --- a/onchain/rollups/.changeset/mean-cars-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Moved `Proof` from `contracts/dapp/ICartesiDApp.sol` to `contracts/common/Proof.sol`. diff --git a/onchain/rollups/.changeset/modern-rats-build.md b/onchain/rollups/.changeset/modern-rats-build.md deleted file mode 100644 index 7a90af38..00000000 --- a/onchain/rollups/.changeset/modern-rats-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added `ERC20TransferFailed` error to `IERC20Portal` interface. diff --git a/onchain/rollups/.changeset/moody-hornets-tell.md b/onchain/rollups/.changeset/moody-hornets-tell.md new file mode 100644 index 00000000..3c202876 --- /dev/null +++ b/onchain/rollups/.changeset/moody-hornets-tell.md @@ -0,0 +1,7 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `IDAppAddressRelay` interface: + +- Renamed it as `IApplicationAddressRelay`. diff --git a/onchain/rollups/.changeset/old-rabbits-collect.md b/onchain/rollups/.changeset/old-rabbits-collect.md new file mode 100644 index 00000000..fd59c66d --- /dev/null +++ b/onchain/rollups/.changeset/old-rabbits-collect.md @@ -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` diff --git a/onchain/rollups/.changeset/lemon-eels-walk.md b/onchain/rollups/.changeset/olive-steaks-explode.md similarity index 100% rename from onchain/rollups/.changeset/lemon-eels-walk.md rename to onchain/rollups/.changeset/olive-steaks-explode.md diff --git a/onchain/rollups/.changeset/orange-poems-fry.md b/onchain/rollups/.changeset/orange-poems-fry.md new file mode 100644 index 00000000..7397cbac --- /dev/null +++ b/onchain/rollups/.changeset/orange-poems-fry.md @@ -0,0 +1,5 @@ +--- +"@cartesi/rollups": major +--- + +Moved `Proof` to a dedicated file in the `common` directory. diff --git a/onchain/rollups/.changeset/pink-penguins-kiss.md b/onchain/rollups/.changeset/pink-penguins-kiss.md deleted file mode 100644 index 09070503..00000000 --- a/onchain/rollups/.changeset/pink-penguins-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Comply with Solidity style guide. diff --git a/onchain/rollups/.changeset/plenty-feet-help.md b/onchain/rollups/.changeset/plenty-feet-help.md deleted file mode 100644 index f100dbe8..00000000 --- a/onchain/rollups/.changeset/plenty-feet-help.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the encoding of ERC-20 deposit inputs. - -- Removed the boolean `success` field - -We now guarantee the deposit to have been successful. diff --git a/onchain/rollups/.changeset/polite-shrimps-look.md b/onchain/rollups/.changeset/polite-shrimps-look.md deleted file mode 100644 index 3c7a1f2a..00000000 --- a/onchain/rollups/.changeset/polite-shrimps-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Made `Application` and input relays implement EIP-165 (`supportsInterface`). diff --git a/onchain/rollups/.changeset/proud-news-invent.md b/onchain/rollups/.changeset/proud-news-invent.md deleted file mode 100644 index afdcc8f7..00000000 --- a/onchain/rollups/.changeset/proud-news-invent.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Added `IInputBox` and `IInputRelays[]` parameters to the constructor of the `Application` contract. -Consequently, added the same parameters to the functions and events of the `IApplicationFactory` interface. -Also, added functions `getInputBox` and `getInputRelays` to the `IApplication` interface. diff --git a/onchain/rollups/.changeset/purple-pots-attack.md b/onchain/rollups/.changeset/purple-pots-attack.md new file mode 100644 index 00000000..f1cf87c7 --- /dev/null +++ b/onchain/rollups/.changeset/purple-pots-attack.md @@ -0,0 +1,5 @@ +--- +"@cartesi/rollups": major +--- + +Moved `OutputValidityProof` to a dedicated file in the `common` directory. diff --git a/onchain/rollups/.changeset/quiet-guests-greet.md b/onchain/rollups/.changeset/quiet-guests-greet.md new file mode 100644 index 00000000..5ef1bd44 --- /dev/null +++ b/onchain/rollups/.changeset/quiet-guests-greet.md @@ -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` diff --git a/onchain/rollups/.changeset/red-wasps-report.md b/onchain/rollups/.changeset/red-wasps-report.md new file mode 100644 index 00000000..21c1878a --- /dev/null +++ b/onchain/rollups/.changeset/red-wasps-report.md @@ -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` diff --git a/onchain/rollups/.changeset/rotten-parents-unite.md b/onchain/rollups/.changeset/rotten-parents-unite.md deleted file mode 100644 index 6d4cd667..00000000 --- a/onchain/rollups/.changeset/rotten-parents-unite.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified functions in `IApplication` interface: - -- Changed type of `proof` parameter from `Proof` to `OutputValidityProof` diff --git a/onchain/rollups/.changeset/rude-scissors-try.md b/onchain/rollups/.changeset/rude-scissors-try.md new file mode 100644 index 00000000..2cf42757 --- /dev/null +++ b/onchain/rollups/.changeset/rude-scissors-try.md @@ -0,0 +1,11 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `ERC1155SinglePortal` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` + - `IERC1155SinglePortal` diff --git a/onchain/rollups/.changeset/seven-teachers-behave.md b/onchain/rollups/.changeset/seven-teachers-behave.md new file mode 100644 index 00000000..27877b47 --- /dev/null +++ b/onchain/rollups/.changeset/seven-teachers-behave.md @@ -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. diff --git a/onchain/rollups/.changeset/sharp-yaks-sing.md b/onchain/rollups/.changeset/sharp-yaks-sing.md deleted file mode 100644 index a7bffc64..00000000 --- a/onchain/rollups/.changeset/sharp-yaks-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added `Outputs` interface. diff --git a/onchain/rollups/.changeset/short-bears-flash.md b/onchain/rollups/.changeset/short-bears-flash.md deleted file mode 100644 index 0c3c6709..00000000 --- a/onchain/rollups/.changeset/short-bears-flash.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed from the `Authority` contract: - -- `AuthorityWithdrawalFailed` error -- `NewHistory` event -- `getClaim` function -- `getHistory` function -- `join` function -- `migrateHistoryToConsensus` function -- `setHistory` function -- `submitClaim(bytes)` function -- `withdrawERC20Tokens` function - -Note: the `submitClaim(bytes)` function was replaced by a `submitClaim(address,(uint64,uint64),bytes32)` function. diff --git a/onchain/rollups/.changeset/silly-islands-end.md b/onchain/rollups/.changeset/silly-islands-end.md new file mode 100644 index 00000000..bd4f5427 --- /dev/null +++ b/onchain/rollups/.changeset/silly-islands-end.md @@ -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. diff --git a/onchain/rollups/.changeset/slow-comics-fold.md b/onchain/rollups/.changeset/slow-comics-fold.md new file mode 100644 index 00000000..aa51e45f --- /dev/null +++ b/onchain/rollups/.changeset/slow-comics-fold.md @@ -0,0 +1,7 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `CartesiDAppFactory` contract: + +- Renamed it as `ApplicationFactory`. diff --git a/onchain/rollups/.changeset/smooth-ducks-trade.md b/onchain/rollups/.changeset/smooth-ducks-trade.md new file mode 100644 index 00000000..9f89c317 --- /dev/null +++ b/onchain/rollups/.changeset/smooth-ducks-trade.md @@ -0,0 +1,10 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `InputRelay` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` diff --git a/onchain/rollups/.changeset/spotty-peas-speak.md b/onchain/rollups/.changeset/spotty-peas-speak.md new file mode 100644 index 00000000..79ea138f --- /dev/null +++ b/onchain/rollups/.changeset/spotty-peas-speak.md @@ -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 diff --git a/onchain/rollups/.changeset/three-pigs-flow.md b/onchain/rollups/.changeset/strange-foxes-melt.md similarity index 85% rename from onchain/rollups/.changeset/three-pigs-flow.md rename to onchain/rollups/.changeset/strange-foxes-melt.md index 6f6b41d9..f9c2156f 100644 --- a/onchain/rollups/.changeset/three-pigs-flow.md +++ b/onchain/rollups/.changeset/strange-foxes-melt.md @@ -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 diff --git a/onchain/rollups/.changeset/early-lies-hide.md b/onchain/rollups/.changeset/strong-countries-check.md similarity index 71% rename from onchain/rollups/.changeset/early-lies-hide.md rename to onchain/rollups/.changeset/strong-countries-check.md index 0b7ef3d6..301fe2c7 100644 --- a/onchain/rollups/.changeset/early-lies-hide.md +++ b/onchain/rollups/.changeset/strong-countries-check.md @@ -1,5 +1,5 @@ --- -"@cartesi/rollups": patch +"@cartesi/rollups": major --- Bumped the Solidity compiler from `0.8.19` to `0.8.23`. diff --git a/onchain/rollups/.changeset/stupid-doors-drop.md b/onchain/rollups/.changeset/stupid-doors-drop.md deleted file mode 100644 index e7ed0c37..00000000 --- a/onchain/rollups/.changeset/stupid-doors-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added `QuorumFactory` contract and `IQuorumFactory` interface. diff --git a/onchain/rollups/.changeset/sweet-clouds-smoke.md b/onchain/rollups/.changeset/sweet-clouds-smoke.md deleted file mode 100644 index 57c179bc..00000000 --- a/onchain/rollups/.changeset/sweet-clouds-smoke.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added errors to `IApplication` interface: - -- `VoucherReexecutionNotAllowed` -- `IncorrectEpochHash` -- `IncorrectOutputsEpochRootHash` -- `IncorrectOutputHashesRootHash` diff --git a/onchain/rollups/.changeset/sweet-pianos-exist.md b/onchain/rollups/.changeset/sweet-pianos-exist.md deleted file mode 100644 index 9c2d38ae..00000000 --- a/onchain/rollups/.changeset/sweet-pianos-exist.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Renamed `(Cartesi)?DApp` as `Application`. Examples: - -- `CartesiDApp` as `Application`. -- `CartesiDAppFactory` as `ApplicationFactory`. -- `DAppAddressRelay` as `ApplicationAddressRelay`. diff --git a/onchain/rollups/.changeset/thin-wolves-give.md b/onchain/rollups/.changeset/thin-wolves-give.md deleted file mode 100644 index 29a7d49a..00000000 --- a/onchain/rollups/.changeset/thin-wolves-give.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `OutputValidityProof` struct: - -- Removed the `vouchersEpochRootHash` field -- Removed the `noticesEpochRootHash` field -- Added an `outputsEpochRootHash` field -- Added an `inputRange` field diff --git a/onchain/rollups/.changeset/tough-carrots-invent.md b/onchain/rollups/.changeset/tough-carrots-invent.md new file mode 100644 index 00000000..73ad5112 --- /dev/null +++ b/onchain/rollups/.changeset/tough-carrots-invent.md @@ -0,0 +1,7 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `IERC20Portal` interface: + +- Added an `ERC20TransferFailed` error. diff --git a/onchain/rollups/.changeset/tough-shoes-taste.md b/onchain/rollups/.changeset/tough-shoes-taste.md deleted file mode 100644 index 505501a8..00000000 --- a/onchain/rollups/.changeset/tough-shoes-taste.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Changed the ERC-20 portal to revert whenever `transferFrom` returns `false`. -This change was made to prevent DApp back-end developers from blindly accepting failed transfers, if they did not check the `success` flag of ERC-20 deposit inputs. diff --git a/onchain/rollups/.changeset/two-mails-marry.md b/onchain/rollups/.changeset/two-mails-marry.md new file mode 100644 index 00000000..b9bae3a9 --- /dev/null +++ b/onchain/rollups/.changeset/two-mails-marry.md @@ -0,0 +1,11 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `ERC20Portal` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` + - `IERC20Portal` diff --git a/onchain/rollups/.changeset/violet-laws-sin.md b/onchain/rollups/.changeset/violet-laws-sin.md new file mode 100644 index 00000000..3ead9b27 --- /dev/null +++ b/onchain/rollups/.changeset/violet-laws-sin.md @@ -0,0 +1,5 @@ +--- +"@cartesi/rollups": major +--- + +Removed deployments to Goerli testnets (L1 and L2s). diff --git a/onchain/rollups/.changeset/wise-owls-push.md b/onchain/rollups/.changeset/wise-owls-push.md new file mode 100644 index 00000000..56bf2955 --- /dev/null +++ b/onchain/rollups/.changeset/wise-owls-push.md @@ -0,0 +1,11 @@ +--- +"@cartesi/rollups": major +--- + +Modified the `ERC721Portal` contract: + +- Made it support the following interfaces (as in EIP-165): + + - `IERC165` + - `IInputRelay` + - `IERC721Portal`