Skip to content

Commit

Permalink
Lock contract impls when used w proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
lykhonis committed Sep 6, 2023
1 parent 5ea15c0 commit 0bbff96
Show file tree
Hide file tree
Showing 18 changed files with 81 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/Participant.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp7/LSP7Listings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp7/LSP7Marketplace.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp7/LSP7Offers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp8/LSP8Auctions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp8/LSP8Listings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp8/LSP8Marketplace.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/marketplace/lsp8/LSP8Offers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
5 changes: 5 additions & 0 deletions artifacts/abi/page/PageName.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/Participant.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ contract Participant is IParticipant, OwnableUnset, PausableUpgradeable {
ILSP7DigitalAsset public genesisAsset;
ICollectorIdentifiableDigitalAsset public collectorAsset;

constructor() {
_disableInitializers();
}

function initialize(address owner_) external initializer {
__Pausable_init();
_setOwner(owner_);
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp7/LSP7Listings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ contract LSP7Listings is ILSP7Listings, Module {
uint256 public totalListings;
mapping(uint256 => LSP7Listing) private _listings;

constructor() {
_disableInitializers();
}

function initialize(address newOwner_) external initializer {
Module._initialize(newOwner_);
}
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp7/LSP7Marketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ contract LSP7Marketplace is Base {
ILSP7Listings public listings;
ILSP7Offers public offers;

constructor() {
_disableInitializers();
}

function initialize(
address newOwner_,
address beneficiary_,
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp7/LSP7Offers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ contract LSP7Offers is ILSP7Offers, Module {
// listing id -> buyer -> offer
mapping(uint256 => mapping(address => LSP7Offer)) private _offers;

constructor() {
_disableInitializers();
}

function initialize(address newOwner_, ILSP7Listings listings_) external initializer {
Module._initialize(newOwner_);
listings = listings_;
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp8/LSP8Auctions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ contract LSP8Auctions is ILSP8Auctions, Module {
// listing id -> buyer
mapping(uint256 => address) private _highestBidder;

constructor() {
_disableInitializers();
}

function initialize(address newOwner_, ILSP8Listings listings_) external initializer {
Module._initialize(newOwner_);
listings = listings_;
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp8/LSP8Listings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ contract LSP8Listings is ILSP8Listings, Module {
uint256 public totalListings;
mapping(uint256 => LSP8Listing) private _listings;

constructor() {
_disableInitializers();
}

function initialize(address newOwner_) external initializer {
Module._initialize(newOwner_);
}
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp8/LSP8Marketplace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ contract LSP8Marketplace is IPageNameMarketplace, Base {
// profile -> asset -> token id -> price
mapping(address => mapping(address => mapping(bytes32 => uint256))) private _lastPurchasePrice;

constructor() {
_disableInitializers();
}

function initialize(
address newOwner_,
address beneficiary_,
Expand Down
4 changes: 4 additions & 0 deletions src/marketplace/lsp8/LSP8Offers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ contract LSP8Offers is ILSP8Offers, Module {
// listing id -> buyer -> offer
mapping(uint256 => mapping(address => LSP8Offer)) private _offers;

constructor() {
_disableInitializers();
}

function initialize(address newOwner_, ILSP8Listings listings_) external initializer {
Module._initialize(newOwner_);
listings = listings_;
Expand Down
4 changes: 4 additions & 0 deletions src/page/PageName.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ contract PageName is LSP8EnumerableInitAbstract, ReentrancyGuardUpgradeable, Pau
address public controller;
IPageNameMarketplace public marketplace;

constructor() {
_disableInitializers();
}

function initialize(
string memory name_,
string memory symbol_,
Expand Down

0 comments on commit 0bbff96

Please sign in to comment.