Skip to content

Commit

Permalink
feat: AbstractBlocklockReceiver.sol (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
L0GYKAL authored Nov 9, 2024
1 parent 0cac39f commit 93c76a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 93c76a2

Please sign in to comment.