-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge branch 'main' into prerelease/2.0.0
- Loading branch information
Showing
55 changed files
with
3,777 additions
and
2,607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@cartesi/rollups": minor | ||
--- | ||
|
||
Add a contract for safe ERC20 transfers. This can be used by delegatecall vouchers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@cartesi/rollups": major | ||
--- | ||
|
||
Added contract `AssetTransferToENS` that can be used as a destination for `DELEGATECALL` vouchers to transfer assets to ENS-identified accounts. | ||
Added library `LibAddress` for safe low level call and safe delegate call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@cartesi/rollups": major | ||
--- | ||
|
||
Added ENS Portal. | ||
Added a new input encoding for ENS inputs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@cartesi/rollups": minor | ||
--- | ||
|
||
Add self-hosted application factory contract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@cartesi/rollups": minor | ||
--- | ||
|
||
Supported the execution of `DELEGATECALL` vouchers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// (c) Cartesi and individual authors (see AUTHORS) | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
pragma solidity ^0.8.8; | ||
|
||
import {Authority} from "../consensus/authority/Authority.sol"; | ||
import {IAuthorityFactory} from "../consensus/authority/IAuthorityFactory.sol"; | ||
import {Application} from "./Application.sol"; | ||
import {IApplicationFactory} from "./IApplicationFactory.sol"; | ||
import {IInputBox} from "../inputs/IInputBox.sol"; | ||
import {IPortal} from "../portals/IPortal.sol"; | ||
|
||
/// @title Self-hosted Application Factory interface | ||
interface ISelfHostedApplicationFactory { | ||
/// @notice Get the factory used to deploy `Authority` contracts | ||
/// @return The authority factory | ||
function getAuthorityFactory() external view returns (IAuthorityFactory); | ||
|
||
/// @notice Get the factory used to deploy `Application` contracts | ||
/// @return The application factory | ||
function getApplicationFactory() | ||
external | ||
view | ||
returns (IApplicationFactory); | ||
|
||
/// @notice Deploy new application and authority contracts deterministically. | ||
/// @param authorityOwner The initial authority owner | ||
/// @param inputBox The input box contract | ||
/// @param portals The portals supported by the application | ||
/// @param appOwner The initial Application owner | ||
/// @param templateHash The initial machine state hash | ||
/// @param salt The salt used to deterministically generate the addresses | ||
/// @return The application contract | ||
/// @return The authority contract | ||
function deployContracts( | ||
address authorityOwner, | ||
IInputBox inputBox, | ||
IPortal[] calldata portals, | ||
address appOwner, | ||
bytes32 templateHash, | ||
bytes32 salt | ||
) external returns (Application, Authority); | ||
|
||
/// @notice Calculate the addresses of the application and authority contracts | ||
/// to be deployed deterministically. | ||
/// @param authorityOwner The initial authority owner | ||
/// @param inputBox The input box contract | ||
/// @param portals The portals supported by the application | ||
/// @param appOwner The initial Application owner | ||
/// @param templateHash The initial machine state hash | ||
/// @param salt The salt used to deterministically generate the addresses | ||
/// @return The application address | ||
/// @return The authority address | ||
function calculateAddresses( | ||
address authorityOwner, | ||
IInputBox inputBox, | ||
IPortal[] calldata portals, | ||
address appOwner, | ||
bytes32 templateHash, | ||
bytes32 salt | ||
) external view returns (address, address); | ||
} |
Oops, something went wrong.