2024-09-01 23:29:11 +03:00

38 lines
1004 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import "./Token.sol";
import "./Storage.sol";
import "./Messaging.sol";
import "./cipherTorrentIntegration.sol";
contract BitThetaSecure {
Token public token;
Storage public storageContract;
Messaging public messaging;
BitTorrentIntegration public bitTorrent;
event Deposit(address indexed sender, uint256 amount);
constructor(address tokenAddress, address storageAddress, address messagingAddress, address bitTorrentAddress) {
token = Token(tokenAddress);
storageContract = Storage(storageAddress);
messaging = Messaging(messagingAddress);
bitTorrent = BitTorrentIntegration(bitTorrentAddress);
}
receive() external payable {
require(msg.value > 0, "No Ether sent");
emit Deposit(msg.sender, msg.value);
}
fallback() external payable {
require(msg.value > 0, "No Ether sent");
emit Deposit(msg.sender, msg.value);
}
}