Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bank Smart Contract Created. #21

Merged
merged 3 commits into from
Feb 5, 2022
Merged

Conversation

belelaritra
Copy link
Contributor

@belelaritra belelaritra commented Feb 2, 2022

Bank Smart Contract

Here is a simple bank smart contract where you can

  1. Create Account
  2. Deposit Ether & convert it into account balance
  3. Withdraw from account.
  4. Transfer balance (Within Bank)
  5. Check account balance & details.

After you request for amount withdraw, your available balance will be reduced by the amount you requested & pending balance will be the previous available balance until the transaction is approved by the bank else it will be reverted back to your account. (Just Like : NEFT/ RTGS)

Fixes #10

What features have been added or changed/Fixed(In Points)(Required)

  • Smart Contract Created

Blockchain this work is compatible with(Required)

  • Ethereum
  • Solidity v0.5.16

Type of change(Required)

  • New feature (non-breaking change which adds functionality)

Checklist(Required):

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Output Screenshots(Required)

1. Account Created :

Account Created

2. Deposit Ether (wei) : Ether Deposit 3. Account Balance after Deposit : Account Details
4. Withdraw Request : Screenshot 2022-02-03 at 4 32 30 AM Account Balance after Withdrawl Request : Screenshot 2022-02-03 at 4 32 45 AM
Approve Withdraw Request by Bank : Screenshot 2022-02-03 at 4 33 27 AM Account Balance after Approval from Bank: Screenshot 2022-02-03 at 4 33 56 AM

@belelaritra
Copy link
Contributor Author

Please let me know if there are any changes required @mbcse .
Also please add JWOC , easy both of these labels.

@mbcse
Copy link
Contributor

mbcse commented Feb 3, 2022

@belelaritra Put this in a folder called BANK

@belelaritra
Copy link
Contributor Author

@mbcse PTAL.

@mbcse
Copy link
Contributor

mbcse commented Feb 4, 2022

@belelaritra Hey Please Fix the struct suggestion that I have given. Also sorry for the confusion, you have to put file in bank folder under ethereum folder.

Directory changed from BANK to Ethereum/BANK as asked by @mbcse in PR theblockchainchief#21
@mbcse mbcse merged commit dd32c52 into theblockchainchief:main Feb 5, 2022
@mbcse
Copy link
Contributor

mbcse commented Feb 5, 2022

@belelaritra Thanks for the contribution!

@mbcse mbcse added easy Points will be: 1(1st Phase), 2(2nd Phase). 1 day will be allotted. JWOC This issue/pull request will be considered for JWOC 2k22. labels Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Points will be: 1(1st Phase), 2(2nd Phase). 1 day will be allotted. JWOC This issue/pull request will be considered for JWOC 2k22.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a bank smart contract
2 participants