Skip to content

Commit 5ce0291

Browse files
authored
feat: add arbos 31 methods (#8)
1 parent 5f81875 commit 5ce0291

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

ArbWasmCache.sol

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@ interface ArbWasmCache {
1919
/// @return managers the list of managers.
2020
function allCacheManagers() external view returns (address[] memory managers);
2121

22-
/// @notice Caches all programs with the given codehash.
22+
/// @dev Deprecated, replaced with cacheProgram
23+
/// @notice Available in ArbOS version 30 only
24+
function cacheCodehash(
25+
bytes32 codehash
26+
) external;
27+
28+
/// @notice Caches all programs with a codehash equal to the given address.
2329
/// @notice Reverts if the programs have expired.
2430
/// @notice Caller must be a cache manager or chain owner.
2531
/// @notice If you're looking for how to bid for position, interact with the chain's cache manager contract.
26-
/// @notice Available in ArbOS version 30.
27-
function cacheCodehash(
28-
bytes32 codehash
32+
/// @notice Available in ArbOS version 31 and above
33+
function cacheProgram(
34+
address addr
2935
) external;
3036

3137
/// @notice Evicts all programs with the given codehash.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arbitrum/nitro-precompile-interfaces",
3-
"version": "30.0.0",
3+
"version": "31.0.0",
44
"description": "Solidity interfaces for Arbitrum Nitro precompiled contracts",
55
"author": "Offchain Labs, Inc.",
66
"license": "BUSL-1.1",

0 commit comments

Comments
 (0)