@@ -11,12 +11,12 @@ import PromiseKit
11
11
import BigInt
12
12
13
13
extension BlockExplorer {
14
- public func getTransactionHistory( address: EthereumAddress , tokenName name: String = " Ether " , page: Int = 1 , size: Int = 50 ) -> Promise < [ TransactionHistorical ] > {
14
+ public func getTransactionHistory( address: EthereumAddress , tokenName name: String = " Ether " , page: Int = 1 , size: Int = 50 ) -> Promise < [ TransactionHistoryRecord ] > {
15
15
let address = address. address
16
16
return getTransactionsHistory ( address: address, tokenName: name, page: page, size: size)
17
17
}
18
18
19
- public func getTransactionsHistory( address publicAddress: String , tokenName name: String = " Ether " , page: Int = 1 , size: Int = 50 ) -> Promise < [ TransactionHistorical ] > {
19
+ public func getTransactionsHistory( address publicAddress: String , tokenName name: String = " Ether " , page: Int = 1 , size: Int = 50 ) -> Promise < [ TransactionHistoryRecord ] > {
20
20
21
21
//Configuring http request
22
22
let listId : ListId = ( name == " Ether " ) ? . listOfETH : . listOfTokens
@@ -26,7 +26,7 @@ extension BlockExplorer {
26
26
let internalParams = InternalParam ( entityId: publicAddress, page: page, size: size)
27
27
let parameters = Body ( listId: listId. rawValue, moduleId: " address " , params: internalParams)
28
28
29
- return Promise< [ TransactionHistorical ] > { seal in
29
+ return Promise< [ TransactionHistoryRecord ] > { seal in
30
30
do {
31
31
request. httpBody = try JSONEncoder ( ) . encode ( parameters)
32
32
} catch {
@@ -57,11 +57,11 @@ extension BlockExplorer {
57
57
//MARK: - Decodable structures
58
58
59
59
public struct Response : Decodable {
60
- let rows : [ TransactionHistorical ]
60
+ let rows : [ TransactionHistoryRecord ]
61
61
let head : Head
62
62
}
63
63
64
- public struct TransactionHistorical : Decodable {
64
+ public struct TransactionHistoryRecord : Decodable {
65
65
66
66
let id : String
67
67
let hash : Data
0 commit comments