Skip to content

Commit 4f25210

Browse files
authored
MarketplaceV3 updates and design doc (#334)
* thirdweb stamp on marketplace-v3 contracts * ascii art * slither action * remove ascii, add author * docs * fix bid amounts * v3.4.2-0 * design doc * fix doc * Update marketplace-v3.md
1 parent aa0d58c commit 4f25210

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+913
-36
lines changed

contracts/extension/plugin/ContractMetadataLogic.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "./ContractMetadataStorage.sol";
57
import "../../extension/interface/IContractMetadata.sol";
68

79
/**
10+
* @author thirdweb.com
11+
*
812
* @title Contract Metadata
913
* @notice Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
1014
* for you contract.

contracts/extension/plugin/ContractMetadataStorage.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

6+
/**
7+
* @author thirdweb.com
8+
*/
49
library ContractMetadataStorage {
510
bytes32 public constant CONTRACT_METADATA_STORAGE_POSITION = keccak256("contract.metadata.storage");
611

contracts/extension/plugin/PermissionsEnumerableLogic.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "./PermissionsEnumerableStorage.sol";
57
import "./PermissionsLogic.sol";
68

79
/**
10+
* @author thirdweb.com
11+
*
812
* @title PermissionsEnumerable
913
* @dev This contracts provides extending-contracts with role-based access control mechanisms.
1014
* Also provides interfaces to view all members with a given role, and total count of members.

contracts/extension/plugin/PermissionsEnumerableStorage.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "../../extension/interface/IPermissionsEnumerable.sol";
57

8+
/**
9+
* @author thirdweb.com
10+
*/
611
library PermissionsEnumerableStorage {
712
bytes32 public constant PERMISSIONS_ENUMERABLE_STORAGE_POSITION = keccak256("permissions.enumerable.storage");
813

contracts/extension/plugin/PermissionsLogic.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "../../extension/interface/IPermissions.sol";
57
import "./PermissionsStorage.sol";
68
import "../../lib/TWStrings.sol";
79

810
/**
11+
* @author thirdweb.com
12+
*
913
* @title Permissions
1014
* @dev This contracts provides extending-contracts with role-based access control mechanisms
1115
*/

contracts/extension/plugin/PermissionsStorage.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

6+
/**
7+
* @author thirdweb.com
8+
*/
49
library PermissionsStorage {
510
bytes32 public constant PERMISSIONS_STORAGE_POSITION = keccak256("permissions.storage");
611

contracts/extension/plugin/PlatformFeeLogic.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "./PlatformFeeStorage.sol";
57
import "../../extension/interface/IPlatformFee.sol";
68

79
/**
10+
* @author thirdweb.com
11+
*
812
* @title Platform Fee
913
* @notice Thirdweb's `PlatformFee` is a contract extension to be used with any base contract. It exposes functions for setting and reading
1014
* the recipient of platform fee and the platform fee basis points, and lets the inheriting contract perform conditional logic

contracts/extension/plugin/PlatformFeeStorage.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

6+
/**
7+
* @author thirdweb.com
8+
*/
49
library PlatformFeeStorage {
510
bytes32 public constant PLATFORM_FEE_STORAGE_POSITION = keccak256("platform.fee.storage");
611

contracts/extension/plugin/PluginMap.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "../interface/plugin/IPluginMap.sol";
57
import "../../openzeppelin-presets/utils/EnumerableSet.sol";
68

9+
/**
10+
* @author thirdweb.com
11+
*/
712
contract PluginMap is IPluginMap {
813
using EnumerableSet for EnumerableSet.Bytes32Set;
914

contracts/extension/plugin/Router.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
// thirdweb Contract
3+
24
pragma solidity ^0.8.0;
35

46
import "../interface/plugin/IRouter.sol";
57
import "../../extension/Multicall.sol";
68
import "../../eip/ERC165.sol";
79
import "../../openzeppelin-presets/utils/EnumerableSet.sol";
810

11+
/**
12+
* @author thirdweb.com
13+
*/
914
library RouterStorage {
1015
bytes32 public constant ROUTER_STORAGE_POSITION = keccak256("router.storage");
1116

0 commit comments

Comments
 (0)