Skip to content

Commit

Permalink
Rename ProtobufConvertible to ProtoConvertible
Browse files Browse the repository at this point in the history
  • Loading branch information
qtbeee committed Sep 26, 2019
1 parent f9fc8f2 commit 0f386e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/Hedera/Date.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwiftProtobuf
import Foundation

// We can't have Date conform to ProtobufConvertible because Date can be used
// We can't have Date conform to ProtoConvertible because Date can be used
// for _both_ `Proto_Timestamp` and `Proto_TimestampSeconds`
extension Date {
static let nanosPerSecond: Double = 1_000_000_000
Expand Down Expand Up @@ -56,7 +56,7 @@ extension Date: LosslessStringConvertible {


// TODO: move to its own file?
extension TimeInterval: ProtobufConvertible {
extension TimeInterval: ProtoConvertible {
typealias Proto = Proto_Duration

func toProto() -> Proto {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SwiftProtobuf

protocol ProtobufConvertible {
protocol ProtoConvertible {
associatedtype Proto

func toProto() -> Proto
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hedera/Transaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct Transaction {
}
}

extension Transaction: ProtobufConvertible {
extension Transaction: ProtoConvertible {
func toProto() -> Proto_Transaction {
inner
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hedera/TransactionId.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension TransactionId: LosslessStringConvertible {
}
}

extension TransactionId: ProtobufConvertible {
extension TransactionId: ProtoConvertible {
typealias Proto = Proto_TransactionID

func toProto() -> Proto {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hedera/account/AccountId.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extension AccountId: Equatable {

extension AccountId: Hashable {}

extension AccountId: ProtobufConvertible {
extension AccountId: ProtoConvertible {
typealias Proto = Proto_AccountID

func toProto() -> Proto {
Expand Down

0 comments on commit 0f386e1

Please sign in to comment.