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

StandardSubscription #339

Merged
merged 6 commits into from
Jan 17, 2025
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
4 changes: 3 additions & 1 deletion contracts/contracts/coordination/GlobalAllowList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin-upgradeable/contracts/proxy/utils/Initializable.sol";
import "../lib/LookupKey.sol";
import "./IEncryptionAuthorizer.sol";
import "./Coordinator.sol";
Expand All @@ -12,7 +13,7 @@ import "./Coordinator.sol";
* @title GlobalAllowList
* @notice Manages a global allow list of addresses that are authorized to decrypt ciphertexts.
*/
contract GlobalAllowList is IEncryptionAuthorizer {
contract GlobalAllowList is IEncryptionAuthorizer, Initializable {
using MessageHashUtils for bytes32;
using ECDSA for bytes32;

Expand Down Expand Up @@ -45,6 +46,7 @@ contract GlobalAllowList is IEncryptionAuthorizer {
require(address(_coordinator) != address(0), "Contracts cannot be zero addresses");
require(_coordinator.numberOfRituals() >= 0, "Invalid coordinator");
coordinator = _coordinator;
_disableInitializers();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import "./EncryptorSlotsSubscription.sol";
import "../GlobalAllowList.sol";

/**
* @title BqETH Subscription
* @title StandardSubscription
* @notice Manages the subscription information for rituals.
*/
contract BqETHSubscription is EncryptorSlotsSubscription, Initializable, OwnableUpgradeable {
contract StandardSubscription is EncryptorSlotsSubscription, Initializable, OwnableUpgradeable {
using SafeERC20 for IERC20;

struct Billing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "../contracts/coordination/IEncryptionAuthorizer.sol";
import "../contracts/coordination/Coordinator.sol";
import "../contracts/coordination/IFeeModel.sol";

contract CoordinatorForBqETHSubscriptionMock {
contract CoordinatorForStandardSubscriptionMock {
struct Ritual {
uint32 endTimestamp;
IEncryptionAuthorizer accessController;
Expand Down
2 changes: 1 addition & 1 deletion deployment/artifacts/lynx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@
}
},
"80002": {
"BqETHSubscription": {
"StandardSubscription": {
"address": "0x3E851204c29742b713d5C243093E98691591e654",
"abi": [
{
Expand Down
Loading
Loading