Skip to content

Commit 682dbab

Browse files
Add ArbCensoredTransactionsManager precompile
1 parent a70694e commit 682dbab

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

ArbCensoredTransactionsManager.sol

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright 2025, Offchain Labs, Inc.
2+
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
3+
// SPDX-License-Identifier: BUSL-1.1
4+
5+
pragma solidity >=0.4.21 <0.9.0;
6+
7+
/**
8+
* @title Enables ability to censor transactions by authorized callers.
9+
* @notice Authorized callers are added/removed through ArbOwner precompile.
10+
* Available in ArbOS version 60 and above
11+
*/
12+
interface ArbCensoredTransactionsManager {
13+
/// @notice Marks the given transaction hash as censored
14+
/// @param txHash The transaction hash to censor
15+
function addCensoredTransaction(
16+
bytes32 txHash
17+
) external;
18+
19+
/// @notice Removes censorship mark for the given transaction hash
20+
/// @param txHash The transaction hash to uncensor
21+
function deleteCensoredTransaction(
22+
bytes32 txHash
23+
) external;
24+
25+
/// @notice Checks whether the given transaction hash is censored
26+
/// @param txHash The transaction hash to check
27+
/// @return True if censored, false otherwise
28+
function isTransactionCensored(
29+
bytes32 txHash
30+
) external view returns (bool);
31+
}

0 commit comments

Comments
 (0)