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

Add functions to read and write brotli compression level for fast compression #63

Merged
merged 4 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/precompiles/ArbOwner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ interface ArbOwner {
/// @notice Sets the base charge (in L1 gas) attributed to each data batch in the calldata pricer
function setPerBatchGasCharge(int64 cost) external;

/**
* @notice Sets the Brotli compression level used for fast compression
* Available in ArbOS version 12 with default level as 1
*/
function setBrotliCompressionLevel(uint64 level) external;

/// @notice Sets the cost amortization cap in basis points
function setAmortizedCostCapBips(uint64 cap) external;

Expand Down
3 changes: 3 additions & 0 deletions src/precompiles/ArbOwnerPublic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ interface ArbOwnerPublic {
/// @notice Get the infrastructure fee collector
function getInfraFeeAccount() external view returns (address);

/// @notice Get the Brotli compression level used for fast compression
function getBrotliCompressionLevel() external view returns (uint64);

event ChainOwnerRectified(address rectifiedOwner);
}
Loading