Compare commits
10 Commits
025fd78388
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 929b44750c | |||
|
d22a9e3a0b
|
|||
|
e19c3f32d9
|
|||
|
787fd5c9df
|
|||
|
bde4bf10ff
|
|||
|
dd3b54d04e
|
|||
|
46d14fff87
|
|||
|
3956549437
|
|||
|
9df94a7aa5
|
|||
|
f78416f480
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+29
@@ -0,0 +1,29 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
contract BankAccount {
|
||||
mapping(address => uint256) private balances;
|
||||
|
||||
event Deposit(address indexed account, uint256 amount);
|
||||
event Withdraw(address indexed account, uint256 amount);
|
||||
|
||||
function deposit() public payable {
|
||||
require(msg.value > 0, "Deposit amount must be greater than 0");
|
||||
balances[msg.sender] += msg.value;
|
||||
emit Deposit(msg.sender, msg.value);
|
||||
}
|
||||
|
||||
function withdraw(uint256 amount) public {
|
||||
require(amount > 0, "Withdraw amount must be greater than 0");
|
||||
require(balances[msg.sender] >= amount, "Insufficient balance");
|
||||
|
||||
balances[msg.sender] -= amount;
|
||||
payable(msg.sender).transfer(amount);
|
||||
|
||||
emit Withdraw(msg.sender, amount);
|
||||
}
|
||||
|
||||
function getBalance() public view returns (uint256) {
|
||||
return balances[msg.sender];
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
contract StudentData {
|
||||
struct Student {
|
||||
uint256 id;
|
||||
string name;
|
||||
uint8 age;
|
||||
string course;
|
||||
}
|
||||
|
||||
Student[] private students;
|
||||
|
||||
event StudentAdded(uint256 id, string name, string course);
|
||||
event FallbackCalled(address sender, uint value, string message);
|
||||
|
||||
function addStudent(uint256 _id, string memory _name, uint8 _age, string memory _course) public {
|
||||
students.push(Student(_id, _name, _age, _course));
|
||||
emit StudentAdded(_id, _name, _course);
|
||||
}
|
||||
|
||||
function getStudent(uint256 index) public view returns (uint256, string memory, uint8, string memory) {
|
||||
require(index < students.length, "Invalid index");
|
||||
Student memory s = students[index];
|
||||
return (s.id, s.name, s.age, s.course);
|
||||
}
|
||||
|
||||
function getTotalStudents() public view returns (uint256) {
|
||||
return students.length;
|
||||
}
|
||||
|
||||
fallback() external payable {
|
||||
emit FallbackCalled(msg.sender, msg.value, "Fallback function triggered!");
|
||||
}
|
||||
|
||||
receive() external payable {
|
||||
emit FallbackCalled(msg.sender, msg.value, "Receive function triggered!");
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
# DISCLAIMER
|
||||
|
||||
Disclaimer for [BlockchainTechnology](https://git.kska.io/sppu-be-comp-content/BlockchainTechnology) repository under [sppu-be-comp-content](https://git.kska.io/sppu-be-comp-content) organization.
|
||||
|
||||
---
|
||||
|
||||
- Please be advised that this repository ([BlockchainTechnology](https://git.kska.io/sppu-be-comp-content/BlockchainTechnology)), its organization [sppu-be-comp-content](https://git.kska.io/sppu-be-comp-content), and all of its content are entirely independent and not associated to, and/or affiliated with SPPU (Savitrbai Phule Pune University, Pune) and/or any of its colleges, nor with [KSKA Git](https://git.kska.io). The materials provided within, including assignments from our contributors and notes from our professors, are solely for educational purposes and convenience.
|
||||
|
||||
- KSKA Git serves merely as a platform for this content and does not imply any association and/or endorsement from SPPU or KSKA Git. It is important to recognize that the organization (sppu-be-comp-content) and all of its repositories in KSKA Git operates independently, and any references to educational institutions or platforms are purely for informational clarity.
|
||||
|
||||
- Furthermore, it is emphasized that the content available within this repository remains meticulously curated to align with the latest 2019 SPPU syllabus for computer engineering. Our commitment to accuracy ensures that the materials provided reflect the current academic standards prescribed by SPPU, offering students a reliable resource to supplement their studies.
|
||||
|
||||
---
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,61 +0,0 @@
|
||||
# 410243: Blockchain Technology (BT)
|
||||
|
||||
This repository contains comprehensive resources for the Blockchain Technology course under the SPPU Computer Engineering syllabus (2019 pattern). It includes codes, handouts, notes, previous year questions (PYQs), and write-ups for assignments. The materials cover key topics such as blockchain fundamentals, cryptocurrency, smart contracts, consensus algorithms, and real-world applications. Additionally, it provides insights into the Ethereum platform using Solidity, enabling students to analyze and implement blockchain solutions effectively.
|
||||
|
||||
---
|
||||
|
||||
## Index
|
||||
|
||||
### Notes
|
||||
|
||||
1. [Unit 1 - Mathematical Foundation for Blockchain](Notes/Unit%201%20-%20Mathematical%20Foundation%20for%20Blockchain)
|
||||
2. [Unit 2 - Feature Engineering](Notes/Unit%202%20-%20Feature%20Engineering)
|
||||
|
||||
### Assignments
|
||||
|
||||
1. Assignment-1:
|
||||
- [Questions](Assignments/BCT%20-%20Assignment-1%20%28Questions%29.pdf)
|
||||
- [Answers](Assignments/BCT%20-%20Assignment-1%20%28Answers%29.pdf)
|
||||
2. Assignment-2:
|
||||
- [Questions](Assignments/BCT%20-%20Assignment-2%20%28Questions%29.pdf)
|
||||
- [Answers](Assignments/BCT%20-%20Assignment-2%20%28Answers%29.pdf)
|
||||
|
||||
### Practical
|
||||
|
||||
1. [Practical-1](Practical/Practical-1/)
|
||||
2. [Practical-2](Practical/Practical-2/)
|
||||
3. [Practical-3](Practical/Practical-3/)
|
||||
4. [Practical-4](Practical/Practical-4/)
|
||||
5. [Practical-5](Practical/Practical-5/)
|
||||
6. [Mini Project](Practical/Mini%20Project/)
|
||||
|
||||
### Question Papers
|
||||
|
||||
- [IN-SEM](Question%20Papers/IN-SEM)
|
||||
- [END-SEM](Question%20Papers/END-SEM)
|
||||
|
||||
### [IN-SEM PYQ Answers](Notes/IN-SEM%20PYQ%20Answers)
|
||||
|
||||
---
|
||||
|
||||
## Miscellaneous
|
||||
|
||||
**-> Disclaimer:** Please read the [DISCLAIMER](DISCLAIMER.md) file for important information regarding the contents of this repository.
|
||||
|
||||
**-> Note:** Content such as codes, softcopies, write-ups and question papers is provided by us, i.e. our contributors. You are free to use this content however you wish, without any restrictions. Some of the notes and handouts have been provided by our professors, thus to use them for anything other than educational purposes, please contact them.
|
||||
|
||||
**-> Maintained by:**
|
||||
- [notkshitij](https://git.kska.io/notkshitij)
|
||||
- [TanmaySpamzzz](https://git.kska.io/TanmaySpamzzz)
|
||||
|
||||
**->** Repository icon from [Flaticon](https://www.flaticon.com).
|
||||
|
||||
**-> Motto:**
|
||||
|
||||

|
||||
|
||||
**-> Keywords:**
|
||||
|
||||
SPPU, Savitribai Phule Pune University, Pune University, Computer Engineering, COMP, Fourth Year, Final Year, BE, Semester 7, SEM-7, Notes, Codes, Practical work, Handouts, Assignments, PYQs, Blockchain Technology, BT, Cryptocurrency, Bitcoin, Smart Contracts, Consensus Algorithms, Ethereum, Solidity, Blockchain Applications, Case Studies, Crypto Wallet,
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user