Welcome to the Media Protocol Smart Contracts repository. This space is dedicated to our upcoming smart contracts, which are currently under thorough audit to ensure top-notch security and efficiency.
In the meantime, we've provided the interfaces of these contracts for developers. This allows you to begin testing and familiarizing yourself with the Media Protocol's capabilities in preparation for the full release.
Clone the repository:
git clone https://github.com/mediafoundation/media-protocol.git
The interfaces can be imported into your Solidity projects to interact with the Media Protocol. For example:
pragma solidity ^0.8.17;
import "./media-protocol/contracts/interfaces/IMarketplaceStorage.sol";
contract SimpleInitializeMarketplace {
IMarketplaceStorage marketplaceStorage;
constructor(address _marketplaceAddress) {
marketplaceStorage = IMarketplaceStorage(_marketplaceStorageAddress);
}
function initializeMarketplace() external returns (uint marketplaceId) {
marketplaceId = marketplaceStorage.initializeMarketplace(
5000000000000000000,
msg.sender,
30000 // 3% fee
);
}
}
Use your preferred tools to compile and test your contracts that interact with these interfaces.
The full implementation of the smart contracts will be published in this repository once the audit is complete. Stay tuned for updates.
We welcome feedback and suggestions. Please feel free to open issues or pull requests for discussions.