-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b60a28b
commit d368553
Showing
12 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ import {IOrderValidator} from "./interfaces/IOrderValidator.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title ExchangeCore Contract | ||
/// @custom:security-contact [email protected] | ||
/// @notice Contains the main functions for the marketplace. | ||
/// @dev This is an abstract contract that requires implementation. | ||
abstract contract ExchangeCore is Initializable, ITransferManager { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ import {Whitelist} from "./Whitelist.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title OrderValidator | ||
/// @custom:security-contact [email protected] | ||
/// @notice Contract for order validation. It validates orders and contains a whitelist of tokens. | ||
contract OrderValidator is IOrderValidator, Initializable, EIP712Upgradeable, ERC165Upgradeable, Whitelist { | ||
using SignatureChecker for address; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ import {IRoyaltiesProvider, TOTAL_BASIS_POINTS} from "./interfaces/IRoyaltiesPro | |
|
||
/// @author The Sandbox | ||
/// @title RoyaltiesRegistry | ||
/// @custom:security-contact [email protected] | ||
/// @dev Contract managing the registry of royalties. | ||
contract RoyaltiesRegistry is OwnableUpgradeable, IRoyaltiesProvider, ERC165Upgradeable { | ||
using ERC165Checker for address; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ import {ILandToken} from "@sandbox-smart-contracts/land/contracts/interfaces/ILa | |
|
||
/// @author The Sandbox | ||
/// @title TransferManager | ||
/// @custom:security-contact [email protected] | ||
/// @notice Manages the transfer of assets with support for different fee structures and beneficiaries. | ||
/// @dev This contract can handle various assets like ERC20, ERC721, and ERC1155 tokens. | ||
abstract contract TransferManager is Initializable, ITransferManager { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ import {IWhitelist} from "./interfaces/IWhitelist.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title Whitelist contract | ||
/// @custom:security-contact [email protected] | ||
/// @dev A contract to control which tokens are accepted in the marketplace. | ||
contract Whitelist is IWhitelist, Initializable, AccessControlEnumerableUpgradeable { | ||
/// @notice Role for The Sandbox tokens | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import {LibOrder} from "../libraries/LibOrder.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title OrderValidator contract interface | ||
/// @custom:security-contact [email protected] | ||
/// @notice Contains the signature for validate, isPurchaseValid and verifyERC20Whitelist functions | ||
interface IOrderValidator { | ||
/// @notice Verifies order | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ uint256 constant TOTAL_BASIS_POINTS = 10000; | |
|
||
/// @author The Sandbox | ||
/// @title RoyaltiesProvider contract interface | ||
/// @custom:security-contact [email protected] | ||
/// @notice Contains the signature for the getRoyalties function | ||
interface IRoyaltiesProvider { | ||
struct Part { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import {LibAsset} from "../libraries/LibAsset.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title ITransferManager Interface | ||
/// @custom:security-contact [email protected] | ||
/// @notice Provides an interface for managing transfers of assets between matched orders. | ||
abstract contract ITransferManager { | ||
/// @dev Represents a side (either maker or taker) of a deal. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ pragma solidity 0.8.23; | |
|
||
/// @author The Sandbox | ||
/// @title Interface for the Whitelist contract | ||
/// @custom:security-contact [email protected] | ||
/// @notice Contains the function signatures for the contract. | ||
interface IWhitelist { | ||
/// @notice Check if a specific role is enabled or disabled. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ pragma solidity 0.8.23; | |
|
||
/// @author The Sandbox | ||
/// @title LibAsset: A library for handling different types of Ethereum assets. | ||
/// @custom:security-contact [email protected] | ||
/// @notice This library contains structs, enums, and utility functions for managing and processing Ethereum assets. | ||
library LibAsset { | ||
/// @dev Represents different types of assets on the Ethereum network. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ pragma solidity 0.8.23; | |
|
||
/// @author The Sandbox | ||
/// @title LibMath: A library for handling specific math operations. | ||
/// @custom:security-contact [email protected] | ||
library LibMath { | ||
uint256 internal constant ACCEPTABLE_RELATIVE_ERROR = 1000; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import {LibMath} from "./LibMath.sol"; | |
|
||
/// @author The Sandbox | ||
/// @title Order Handling Library | ||
/// @custom:security-contact [email protected] | ||
/// @notice Provides tools for constructing, hashing, and validating orders. | ||
library LibOrder { | ||
bytes32 internal constant ORDER_TYPEHASH = | ||
|
d368553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage for this commit
Coverage Report