Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Version Packages #147

wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Nov 21, 2023

This PR was opened by the Changesets release 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

@cartesi/rollups@2.0.0

Major Changes

  • 8ba37d2: Modified the OutputValidityProof struct:

    • Collapsed the vouchersEpochRootHash and noticesEpochRootHash fields into a single outputsEpochRootHash field
    • Added an inputRange 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:

    • 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).
    • Updated the value of the INPUT_MAX_SIZE constant to reflect a change in the off-chain machine.
  • 8ba37d2: Modified the EtherPortal contract:

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

      • IERC165
      • IPortal
      • IEtherPortal
  • 8ba37d2: Modified the AbstractConsensus contract:

    • Removed the join function
    • Implemented the getEpochHash 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
    • Made it inherit from IERC165
  • 8ba37d2: Modified the ERC1155BatchPortal contract:

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

      • IERC165
      • IPortal
      • IERC1155BatchPortal
  • 8ba37d2: Modified the IEtherPortal interface:

    • Added an EtherTransferFailed error.
  • 8ba37d2: Bumped @openzeppelin/contracts from 4.9.2 to 5.0.2.

  • 8ba37d2: Moved Proof to a dedicated file in the common directory.

  • 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.

    • Added the following parameters to its functions and events:

      • inputBox
      • portals
  • 8ba37d2: Modified the CartesiDApp contract:

    • Renamed it as Application.

    • Added the following parameters to its constructor:

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

      • IApplication
      • IERC721Receiver
    • Removed the withdrawEther function.

    • Removed the OnlyApplication error.

    • Removed the EtherTransferFailed error.

  • 8ba37d2: Modified the ERC1155SinglePortal contract:

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

      • IERC165
      • IPortal
      • IERC1155SinglePortal
  • 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:

      • IERC721Receiver.
      • IERC1155Receiver (which inherits from IERC165).
    • 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.
      • Split the voucherId parameter into inputIndex and outputIndexWithinInput parameters.
      • Added an output parameter.
    • Modified the wasVoucherExecuted function:

      • Renamed it as wasOutputExecuted.
    • Added a getInputBox function.

    • Added a getPortals function.

    • Added an InputIndexOutOfRange error.

    • Added an OutputNotExecutable error.

    • Added an OutputNotReexecutable error.

    • Added an IncorrectEpochHash error.

    • Added an IncorrectOutputsEpochRootHash error.

    • Added an IncorrectOutputHashesRootHash 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

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

      • IERC165
      • IPortal
  • 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,(uint64,uint64),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 getEpochHash 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: Modified the ERC20Portal contract:

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

      • IERC165
      • IPortal
      • IERC20Portal
  • 8ba37d2: Removed deployments to Goerli testnets (L1 and L2s).

  • 8ba37d2: Modified the ERC721Portal contract:

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

      • IERC165
      • IPortal
      • IERC721Portal

Minor Changes

  • 8ba37d2: Added:

    • an Outputs interface
    • an InputRange struct
    • a LibAddress library
    • a LibInputRange library
    • a LibError library
    • a LibMerkle32 library
    • a Quorum contract (which implements the IConsensus interface)
    • a QuorumFactory contract
    • an IQuorumFactory interface
  • 5559379: Add a contract for safe ERC20 transfers. This can be used by delegatecall vouchers.

  • d4c1164: Add self-hosted application factory contract

  • 8e958f2: Supported the execution of DELEGATECALL vouchers

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 6c0bbe8 to ee00684 Compare November 28, 2023 12:28
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from fa41577 to bd5e7de Compare December 4, 2023 12:41
@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 5b88213 to e95a39e Compare December 11, 2023 12:50
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 232a6be to cf0cf4c Compare December 21, 2023 17:50
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 3f5c8a4 to 02df8a2 Compare January 11, 2024 08:41
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 0b45594 to 9031675 Compare January 18, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant