diff --git a/smart_contract/contracts/Transactions.sol b/smart_contract/contracts/Transactions.sol deleted file mode 100644 index fd5ee87..0000000 --- a/smart_contract/contracts/Transactions.sol +++ /dev/null @@ -1,38 +0,0 @@ -//SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.0; - - -import "hardhat/console.sol"; - -contract Transactions { - uint256 transactionCount; - - event Transfer(address from, address receiver, uint amount, string message, uint256 timestamp, string keyword); - - struct TransferStruct { - address sender; - address receiver; - uint amount; - string message; - uint256 timestamp; - string keyword; - } - - TransferStruct[] transactions; - - function addToBlockchain(address payable receiver, uint amount, string memory message, string memory keyword) public { - transactionCount += 1; - transactions.push(TransferStruct(msg.sender, receiver, amount, message, block.timestamp, keyword)); - - emit Transfer(msg.sender, receiver, amount, message, block.timestamp, keyword); - } - function getAllTransactions() public view returns (TransferStruct[] memory) { - return transactions; - } - function getTransactionCount() public view returns (uint256) { - return transactionCount; - } - -} - -