Add Transactions & Accounts
This commit is contained in:
BIN
.swiftpm/xcode/package.xcworkspace/xcuserdata/vbodinaud.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
BIN
.swiftpm/xcode/package.xcworkspace/xcuserdata/vbodinaud.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
Binary file not shown.
13
Sources/Blockchain/Models/Account.swift
Normal file
13
Sources/Blockchain/Models/Account.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// File.swift
|
||||
//
|
||||
//
|
||||
// Created by Victor BODINAUD on 31/03/2021.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class Account {
|
||||
var id: String
|
||||
var balance: Int
|
||||
}
|
||||
15
Sources/Blockchain/Models/Transaction.swift
Normal file
15
Sources/Blockchain/Models/Transaction.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// File.swift
|
||||
//
|
||||
//
|
||||
// Created by Victor BODINAUD on 31/03/2021.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class Transaction {
|
||||
var sender: String
|
||||
var receiver: String
|
||||
var amount: Int
|
||||
var type: String
|
||||
}
|
||||
Reference in New Issue
Block a user