Guest User

Untitled

a guest
Nov 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. contract Bank {
  2.  
  3. address owner;
  4.  
  5. mapping (address => uint) balances;
  6.  
  7. // Constructor
  8. function Bank(){
  9. }
  10.  
  11. function setOwner(address newOwner) returns (bool res) {
  12. // TODO
  13. }
  14.  
  15. function deposit(address customer) returns (bool res) {
  16. // TODO
  17. }
  18.  
  19. function withdraw(address customer, uint amount) returns (bool res) {
  20. // TODO
  21. }
  22.  
  23. function remove() {
  24. // TODO
  25. }
  26.  
  27. }
  28.  
  29. contract FundManager {
  30. // 소유주
  31. // 현 은행 계좌
  32. // 사용자 권한관리
  33.  
  34. function setBank(address newBank) returns (bool res) {
  35.  
  36. }
  37.  
  38. function selfdestructBank(address addr) {
  39.  
  40. }
  41.  
  42. function setPermission(address user, uint perm) constant returns (bool res) {
  43.  
  44. }
  45.  
  46. function deposit() returns (bool res) {
  47.  
  48. }
  49.  
  50. function withdraw(uint amount) returns (bool res) {
  51.  
  52. }
  53.  
  54. }
Add Comment
Please, Sign In to add comment