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

feat: AbstractBlocklockReceiver.sol #4

Merged
merged 1 commit into from
Nov 9, 2024
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
15 changes: 15 additions & 0 deletions contracts/src/AbstractBlocklockReceiver.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {IBlocklockReceiver} from "./IBlocklockReceiver.sol";

abstract contract AbstractBlocklockReceiver is IBlocklockReceiver {
address public immutable DECRYPTION_PROVIDER = 0x11045878Ed62Ec3aCC91cE36A46F4EF61d4616e1;

error NotAuthorizedDecryptionProvider();

modifier onlyDecryptionProvider(){
if (msg.sender != DECRYPTION_PROVIDER) revert NotAuthorizedDecryptionProvider();
_;
}
}
2 changes: 1 addition & 1 deletion contracts/src/AbstractDecryptionReceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.24;

import {IDecryptionReceiver} from "./IDecryptionReceiver.sol";

abstract contract AbstractDecryptionReceiver {
abstract contract AbstractDecryptionReceiver is IDecryptionReceiver {
address public immutable DECRYPTION_PROVIDER = 0x11045878Ed62Ec3aCC91cE36A46F4EF61d4616e1;

error NotAuthorizedDecryptionProvider();
Expand Down
Loading