From 8024f0ec704eb0f1d89d1354c7ae11d980e49a37 Mon Sep 17 00:00:00 2001 From: rollups-contracts-bot <153998668+rollups-contracts-bot@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:39:24 +0000 Subject: [PATCH] chore: version packages --- .changeset/breezy-radios-compete.md | 5 - .changeset/calm-panthers-retire.md | 11 -- .changeset/chilly-cherries-join.md | 7 -- .changeset/clean-gorillas-occur.md | 7 -- .changeset/fuzzy-trainers-tan.md | 9 -- .changeset/grumpy-coins-drop.md | 5 - .changeset/healthy-wasps-shout.md | 13 -- .changeset/hip-pans-travel.md | 9 -- .changeset/lazy-gorillas-scream.md | 9 -- .changeset/little-cheetahs-jump.md | 5 - .changeset/lovely-glasses-provide.md | 5 - .changeset/lovely-meals-wink.md | 7 -- .changeset/lucky-elephants-play.md | 5 - .changeset/metal-dryers-clap.md | 5 - .changeset/nine-grapes-pull.md | 5 - .changeset/olive-steaks-explode.md | 5 - .changeset/pink-teachers-whisper.md | 5 - .changeset/popular-ghosts-fix.md | 9 -- .changeset/purple-dolphins-nail.md | 5 - .changeset/purple-pots-attack.md | 5 - .changeset/purple-wasps-flow.md | 5 - .changeset/quiet-guests-greet.md | 9 -- .changeset/red-wasps-report.md | 13 -- .changeset/seven-teachers-behave.md | 16 --- .changeset/shy-dragons-smoke.md | 5 - .changeset/silly-islands-end.md | 45 ------- .changeset/six-doors-grow.md | 12 -- .changeset/six-schools-live.md | 5 - .changeset/slow-comics-fold.md | 7 -- .changeset/smooth-ducks-trade.md | 9 -- .changeset/spotty-peas-speak.md | 16 --- .changeset/strange-foxes-melt.md | 13 -- .changeset/strong-countries-check.md | 5 - .changeset/thirty-crews-fail.md | 5 - .changeset/tidy-pans-camp.md | 5 - .changeset/tough-carrots-invent.md | 7 -- .changeset/violet-laws-sin.md | 5 - CHANGELOG.md | 182 +++++++++++++++++++++++++++ package.json | 2 +- 39 files changed, 183 insertions(+), 319 deletions(-) delete mode 100644 .changeset/breezy-radios-compete.md delete mode 100644 .changeset/calm-panthers-retire.md delete mode 100644 .changeset/chilly-cherries-join.md delete mode 100644 .changeset/clean-gorillas-occur.md delete mode 100644 .changeset/fuzzy-trainers-tan.md delete mode 100644 .changeset/grumpy-coins-drop.md delete mode 100644 .changeset/healthy-wasps-shout.md delete mode 100644 .changeset/hip-pans-travel.md delete mode 100644 .changeset/lazy-gorillas-scream.md delete mode 100644 .changeset/little-cheetahs-jump.md delete mode 100644 .changeset/lovely-glasses-provide.md delete mode 100644 .changeset/lovely-meals-wink.md delete mode 100644 .changeset/lucky-elephants-play.md delete mode 100644 .changeset/metal-dryers-clap.md delete mode 100644 .changeset/nine-grapes-pull.md delete mode 100644 .changeset/olive-steaks-explode.md delete mode 100644 .changeset/pink-teachers-whisper.md delete mode 100644 .changeset/popular-ghosts-fix.md delete mode 100644 .changeset/purple-dolphins-nail.md delete mode 100644 .changeset/purple-pots-attack.md delete mode 100644 .changeset/purple-wasps-flow.md delete mode 100644 .changeset/quiet-guests-greet.md delete mode 100644 .changeset/red-wasps-report.md delete mode 100644 .changeset/seven-teachers-behave.md delete mode 100644 .changeset/shy-dragons-smoke.md delete mode 100644 .changeset/silly-islands-end.md delete mode 100644 .changeset/six-doors-grow.md delete mode 100644 .changeset/six-schools-live.md delete mode 100644 .changeset/slow-comics-fold.md delete mode 100644 .changeset/smooth-ducks-trade.md delete mode 100644 .changeset/spotty-peas-speak.md delete mode 100644 .changeset/strange-foxes-melt.md delete mode 100644 .changeset/strong-countries-check.md delete mode 100644 .changeset/thirty-crews-fail.md delete mode 100644 .changeset/tidy-pans-camp.md delete mode 100644 .changeset/tough-carrots-invent.md delete mode 100644 .changeset/violet-laws-sin.md diff --git a/.changeset/breezy-radios-compete.md b/.changeset/breezy-radios-compete.md deleted file mode 100644 index 29fa9d0a1..000000000 --- a/.changeset/breezy-radios-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Make `IAuthorityFactory` functions return `IAuthority` diff --git a/.changeset/calm-panthers-retire.md b/.changeset/calm-panthers-retire.md deleted file mode 100644 index 2f408f14f..000000000 --- a/.changeset/calm-panthers-retire.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `OutputValidityProof` struct - -- Removed all fields - -- Added an `outputIndex` field - -- Added an `outputHashesSiblings` field diff --git a/.changeset/chilly-cherries-join.md b/.changeset/chilly-cherries-join.md deleted file mode 100644 index d042e40f7..000000000 --- a/.changeset/chilly-cherries-join.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@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/.changeset/clean-gorillas-occur.md b/.changeset/clean-gorillas-occur.md deleted file mode 100644 index 4c26d912f..000000000 --- a/.changeset/clean-gorillas-occur.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `CanonicalMachine` library: - -- Updated the value of the `INPUT_MAX_SIZE` constant to reflect a change in the off-chain machine. diff --git a/.changeset/fuzzy-trainers-tan.md b/.changeset/fuzzy-trainers-tan.md deleted file mode 100644 index a904e2702..000000000 --- a/.changeset/fuzzy-trainers-tan.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `AbstractConsensus` contract: - -- Removed the `join` function -- Implemented the `wasClaimAccepted` function -- Added an internal `_acceptClaim` function diff --git a/.changeset/grumpy-coins-drop.md b/.changeset/grumpy-coins-drop.md deleted file mode 100644 index 7b79c0177..000000000 --- a/.changeset/grumpy-coins-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Inputs are now blockchain-agnostic and self-contained blobs. diff --git a/.changeset/healthy-wasps-shout.md b/.changeset/healthy-wasps-shout.md deleted file mode 100644 index 4cd395665..000000000 --- a/.changeset/healthy-wasps-shout.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added: - -- an `Outputs` interface -- a `LibAddress` library -- a `LibError` library -- a `LibMerkle32` library -- a `Quorum` contract (which implements the `IConsensus` interface) -- a `QuorumFactory` contract -- an `IQuorumFactory` interface diff --git a/.changeset/hip-pans-travel.md b/.changeset/hip-pans-travel.md deleted file mode 100644 index 0c942ab44..000000000 --- a/.changeset/hip-pans-travel.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Add the following fields as the input metadata: - -- The application contract address -- The chain ID -- The latest RANDAO mix of the post beacon state of the previous block diff --git a/.changeset/lazy-gorillas-scream.md b/.changeset/lazy-gorillas-scream.md deleted file mode 100644 index 5e9198482..000000000 --- a/.changeset/lazy-gorillas-scream.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `IInputRelay` interface: - -- Renamed it as `IPortal` - -- Moved it to `contracts/portals` diff --git a/.changeset/little-cheetahs-jump.md b/.changeset/little-cheetahs-jump.md deleted file mode 100644 index 55de232eb..000000000 --- a/.changeset/little-cheetahs-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Added a `lastProcessedBlockNumber` parameter to `IConsensus` functions and events. diff --git a/.changeset/lovely-glasses-provide.md b/.changeset/lovely-glasses-provide.md deleted file mode 100644 index 668f6dbeb..000000000 --- a/.changeset/lovely-glasses-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Add `IOwnable` interface diff --git a/.changeset/lovely-meals-wink.md b/.changeset/lovely-meals-wink.md deleted file mode 100644 index fbe2ab602..000000000 --- a/.changeset/lovely-meals-wink.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `IEtherPortal` interface: - -- Added an `EtherTransferFailed` error. diff --git a/.changeset/lucky-elephants-play.md b/.changeset/lucky-elephants-play.md deleted file mode 100644 index 6b5569aef..000000000 --- a/.changeset/lucky-elephants-play.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Add a contract for safe ERC20 transfers. This can be used by delegatecall vouchers. diff --git a/.changeset/metal-dryers-clap.md b/.changeset/metal-dryers-clap.md deleted file mode 100644 index 8364ab971..000000000 --- a/.changeset/metal-dryers-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Made `ISelfHostedApplicationFactory` return `IApplication` diff --git a/.changeset/nine-grapes-pull.md b/.changeset/nine-grapes-pull.md deleted file mode 100644 index c32719d8c..000000000 --- a/.changeset/nine-grapes-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Make `IQuorumFactory` functions return `IQuorum` diff --git a/.changeset/olive-steaks-explode.md b/.changeset/olive-steaks-explode.md deleted file mode 100644 index 691d32e35..000000000 --- a/.changeset/olive-steaks-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Bumped `@openzeppelin/contracts` from `4.9.2` to `5.0.2`. diff --git a/.changeset/pink-teachers-whisper.md b/.changeset/pink-teachers-whisper.md deleted file mode 100644 index 0a72e8f81..000000000 --- a/.changeset/pink-teachers-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed `authorityOwner` parameter from `AuthorityCreated` event. diff --git a/.changeset/popular-ghosts-fix.md b/.changeset/popular-ghosts-fix.md deleted file mode 100644 index 0b0e6bd06..000000000 --- a/.changeset/popular-ghosts-fix.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Added an `epochLength` parameter to functions of: - -- `IAuthorityFactory` -- `ISelfHostedApplicationFactory` -- `IQuorumFactory` diff --git a/.changeset/purple-dolphins-nail.md b/.changeset/purple-dolphins-nail.md deleted file mode 100644 index 92a2899fc..000000000 --- a/.changeset/purple-dolphins-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Added a `value` field to vouchers. diff --git a/.changeset/purple-pots-attack.md b/.changeset/purple-pots-attack.md deleted file mode 100644 index f1cf87c72..000000000 --- a/.changeset/purple-pots-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Moved `OutputValidityProof` to a dedicated file in the `common` directory. diff --git a/.changeset/purple-wasps-flow.md b/.changeset/purple-wasps-flow.md deleted file mode 100644 index bb4463d89..000000000 --- a/.changeset/purple-wasps-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Add `IQuorum` interface diff --git a/.changeset/quiet-guests-greet.md b/.changeset/quiet-guests-greet.md deleted file mode 100644 index 22c20d906..000000000 --- a/.changeset/quiet-guests-greet.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `ICartesiDAppFactory` interface: - -- Renamed it as `IApplicationFactory`. - -- Made it return `IApplication` instead of `Application`. diff --git a/.changeset/red-wasps-report.md b/.changeset/red-wasps-report.md deleted file mode 100644 index a63ca2aaa..000000000 --- a/.changeset/red-wasps-report.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `CartesiDApp` contract: - -- Renamed it as `Application`. - -- Removed the `withdrawEther` function. - -- Removed the `OnlyApplication` error. - -- Removed the `EtherTransferFailed` error. diff --git a/.changeset/seven-teachers-behave.md b/.changeset/seven-teachers-behave.md deleted file mode 100644 index 4b81acf1c..000000000 --- a/.changeset/seven-teachers-behave.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@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. -- the `LibInput` library. -- the `DAppAddressRelay` contract. -- the `IDAppAddressRelay` interface. diff --git a/.changeset/shy-dragons-smoke.md b/.changeset/shy-dragons-smoke.md deleted file mode 100644 index 5ba18e7c1..000000000 --- a/.changeset/shy-dragons-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Add self-hosted application factory contract diff --git a/.changeset/silly-islands-end.md b/.changeset/silly-islands-end.md deleted file mode 100644 index cd11f18db..000000000 --- a/.changeset/silly-islands-end.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `ICartesiDApp` interface: - -- Renamed it as `IApplication`. - -- Made it inherit from `IOwnable`. - -- Modified the `executeVoucher` function: - - - Renamed it as `executeOutput`. - - 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: - - - Renamed it as `validateOutput`. - - Changed type of the `proof` parameter to `OutputValidityProof`. - - Removed the boolean return value. - -- Modified the `VoucherExecuted` event: - - - Renamed it as `OutputExecuted`. - - Removed `voucherId` parameters. - - Added an `outputIndex` parameter. - - Added an `output` parameter. - -- Modified the `wasVoucherExecuted` function: - - - Renamed it as `wasOutputExecuted`. - -- Added a `validateOutputHash` function. - -- Added an `InputIndexOutOfRange` error. - -- Added an `OutputNotExecutable` error. - -- Added an `OutputNotReexecutable` error. - -- Added an `InvalidOutputHashesSiblingsArrayLength` error. - -- Added an `ClaimNotAccepted` error. diff --git a/.changeset/six-doors-grow.md b/.changeset/six-doors-grow.md deleted file mode 100644 index 9f97aea53..000000000 --- a/.changeset/six-doors-grow.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `IInputBox` interface: - -- Modified the `InputAdded` event: - - - Removed the `sender` parameter. - - Changed the semantics of the `input` parameter. - -- Added an `InputTooLarge` error. diff --git a/.changeset/six-schools-live.md b/.changeset/six-schools-live.md deleted file mode 100644 index 1d452e53b..000000000 --- a/.changeset/six-schools-live.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Added a `getEpochLength` function to `IConsensus` interface. diff --git a/.changeset/slow-comics-fold.md b/.changeset/slow-comics-fold.md deleted file mode 100644 index aa51e45f5..000000000 --- a/.changeset/slow-comics-fold.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `CartesiDAppFactory` contract: - -- Renamed it as `ApplicationFactory`. diff --git a/.changeset/smooth-ducks-trade.md b/.changeset/smooth-ducks-trade.md deleted file mode 100644 index 17fcb371a..000000000 --- a/.changeset/smooth-ducks-trade.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `InputRelay` contract: - -- Renamed it as `Portal` - -- Moved it to `contracts/portals` diff --git a/.changeset/spotty-peas-speak.md b/.changeset/spotty-peas-speak.md deleted file mode 100644 index 0b0447d1c..000000000 --- a/.changeset/spotty-peas-speak.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@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,bytes32)` function diff --git a/.changeset/strange-foxes-melt.md b/.changeset/strange-foxes-melt.md deleted file mode 100644 index 1d4b63dbb..000000000 --- a/.changeset/strange-foxes-melt.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Completely modified the `IConsensus` interface: - -- Removed the `join` function -- Removed the `getClaim` function -- Removed the `ApplicationJoined` event -- Added a `submitClaim` function -- Added a `wasClaimAccepted` function -- Added a `ClaimSubmission` event -- Added a `ClaimAcceptance` event diff --git a/.changeset/strong-countries-check.md b/.changeset/strong-countries-check.md deleted file mode 100644 index 301fe2c71..000000000 --- a/.changeset/strong-countries-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Bumped the Solidity compiler from `0.8.19` to `0.8.23`. diff --git a/.changeset/thirty-crews-fail.md b/.changeset/thirty-crews-fail.md deleted file mode 100644 index bfa6f2537..000000000 --- a/.changeset/thirty-crews-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Supported the execution of `DELEGATECALL` vouchers diff --git a/.changeset/tidy-pans-camp.md b/.changeset/tidy-pans-camp.md deleted file mode 100644 index d879c885f..000000000 --- a/.changeset/tidy-pans-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": minor ---- - -Add `IAuthority` interface diff --git a/.changeset/tough-carrots-invent.md b/.changeset/tough-carrots-invent.md deleted file mode 100644 index 73ad5112f..000000000 --- a/.changeset/tough-carrots-invent.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Modified the `IERC20Portal` interface: - -- Added an `ERC20TransferFailed` error. diff --git a/.changeset/violet-laws-sin.md b/.changeset/violet-laws-sin.md deleted file mode 100644 index 3ead9b27e..000000000 --- a/.changeset/violet-laws-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cartesi/rollups": major ---- - -Removed deployments to Goerli testnets (L1 and L2s). diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ac776c7..b59db209c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,187 @@ # @cartesi/rollups +## 2.0.0 + +### Major Changes + +- 9e515d4: Make `IAuthorityFactory` functions return `IAuthority` +- 8ba37d2: Modified the `OutputValidityProof` struct + + - Removed all fields + - Added an `outputIndex` field + - Added an `outputHashesSiblings` field + +- 8ba37d2: Modified the ERC-20 deposit input: + + - Removed the `success` field, because the ERC-20 portal now only adds inputs for successful deposits. + +- 8ba37d2: Modified the `CanonicalMachine` library: + + - Updated the value of the `INPUT_MAX_SIZE` constant to reflect a change in the off-chain machine. + +- 8ba37d2: Modified the `AbstractConsensus` contract: + + - Removed the `join` function + - Implemented the `wasClaimAccepted` function + - Added an internal `_acceptClaim` function + +- 8ba37d2: Inputs are now blockchain-agnostic and self-contained blobs. +- 446d05a: Add the following fields as the input metadata: + + - The application contract address + - The chain ID + - The latest RANDAO mix of the post beacon state of the previous block + +- 8ba37d2: Modified the `IInputRelay` interface: + + - Renamed it as `IPortal` + - Moved it to `contracts/portals` + +- f8c25e9: Added a `lastProcessedBlockNumber` parameter to `IConsensus` functions and events. +- 8ba37d2: Modified the `IEtherPortal` interface: + + - Added an `EtherTransferFailed` error. + +- 9e515d4: Made `ISelfHostedApplicationFactory` return `IApplication` +- 3ef8cb5: Make `IQuorumFactory` functions return `IQuorum` +- 8ba37d2: Bumped `@openzeppelin/contracts` from `4.9.2` to `5.0.2`. +- 3d40890: Removed `authorityOwner` parameter from `AuthorityCreated` event. +- 7f27379: Added an `epochLength` parameter to functions of: + + - `IAuthorityFactory` + - `ISelfHostedApplicationFactory` + - `IQuorumFactory` + +- 8ba37d2: Added a `value` field to vouchers. +- 8ba37d2: Moved `OutputValidityProof` to a dedicated file in the `common` directory. +- 8ba37d2: Modified the `ICartesiDAppFactory` interface: + + - Renamed it as `IApplicationFactory`. + - Made it return `IApplication` instead of `Application`. + +- 8ba37d2: Modified the `CartesiDApp` contract: + + - Renamed it as `Application`. + - Removed the `withdrawEther` function. + - Removed the `OnlyApplication` error. + - Removed the `EtherTransferFailed` error. + +- 8ba37d2: Removed: + + - the `History` contract. + - the `IHistory` interface. + - the `HistoryFactory` contract. + - the `IHistoryFactory` interface. + - the `AuthorityHistoryPairFactory` contract. + - the `IAuthorityHistoryPairFactory` interface. + - the `OutputEncoding` library. + - the `LibInput` library. + - the `DAppAddressRelay` contract. + - the `IDAppAddressRelay` interface. + +- 8ba37d2: Modified the `ICartesiDApp` interface: + + - Renamed it as `IApplication`. + - Made it inherit from `IOwnable`. + - Modified the `executeVoucher` function: + + - Renamed it as `executeOutput`. + - 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: + + - Renamed it as `validateOutput`. + - Changed type of the `proof` parameter to `OutputValidityProof`. + - Removed the boolean return value. + + - Modified the `VoucherExecuted` event: + + - Renamed it as `OutputExecuted`. + - Removed `voucherId` parameters. + - Added an `outputIndex` parameter. + - Added an `output` parameter. + + - Modified the `wasVoucherExecuted` function: + + - Renamed it as `wasOutputExecuted`. + + - Added a `validateOutputHash` function. + - Added an `InputIndexOutOfRange` error. + - Added an `OutputNotExecutable` error. + - Added an `OutputNotReexecutable` error. + - Added an `InvalidOutputHashesSiblingsArrayLength` error. + - Added an `ClaimNotAccepted` error. + +- 8ba37d2: Modified the `IInputBox` interface: + + - Modified the `InputAdded` event: + + - Removed the `sender` parameter. + - Changed the semantics of the `input` parameter. + + - Added an `InputTooLarge` error. + +- 8ba37d2: Modified the `CartesiDAppFactory` contract: + + - Renamed it as `ApplicationFactory`. + +- 8ba37d2: Modified the `InputRelay` contract: + + - Renamed it as `Portal` + - Moved it to `contracts/portals` + +- 8ba37d2: 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,bytes32)` function + +- 8ba37d2: Completely modified the `IConsensus` interface: + + - Removed the `join` function + - Removed the `getClaim` function + - Removed the `ApplicationJoined` event + - Added a `submitClaim` function + - Added a `wasClaimAccepted` function + - Added a `ClaimSubmission` event + - Added a `ClaimAcceptance` event + +- 8ba37d2: Bumped the Solidity compiler from `0.8.19` to `0.8.23`. +- 8ba37d2: Modified the `IERC20Portal` interface: + + - Added an `ERC20TransferFailed` error. + +- 8ba37d2: Removed deployments to Goerli testnets (L1 and L2s). + +### Minor Changes + +- 8ba37d2: Added: + + - an `Outputs` interface + - a `LibAddress` library + - a `LibError` library + - a `LibMerkle32` library + - a `Quorum` contract (which implements the `IConsensus` interface) + - a `QuorumFactory` contract + - an `IQuorumFactory` interface + +- b7d6477: Add `IOwnable` interface +- 5559379: Add a contract for safe ERC20 transfers. This can be used by delegatecall vouchers. +- d425fe1: Add `IQuorum` interface +- d4c1164: Add self-hosted application factory contract +- 7f27379: Added a `getEpochLength` function to `IConsensus` interface. +- 8e958f2: Supported the execution of `DELEGATECALL` vouchers +- e1bcf0d: Add `IAuthority` interface + ## 1.2.0 ### Minor Changes diff --git a/package.json b/package.json index 9f9c2430b..b5dc2d1b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cartesi/rollups", - "version": "1.2.0", + "version": "2.0.0", "scripts": { "build": "run-s compile export", "clean:ignored": "rimraf artifacts cache coverage deployments/localhost dist generated-src src/types/*",