String implements the Stringer interface for exchange state stringify.
()
| 59 | |
| 60 | // String implements the Stringer interface for exchange state stringify. |
| 61 | func (s ExchangeState) String() string { |
| 62 | switch s { |
| 63 | case ExchangeStateDetected: |
| 64 | return "Detected" |
| 65 | case ExchangeStateTransferring: |
| 66 | return "Transferring" |
| 67 | case ExchangeStateTransferred: |
| 68 | return "Transferred" |
| 69 | case ExchangeStateInvalidTxData: |
| 70 | return "InvalidTxData" |
| 71 | case ExchangeStateFailed: |
| 72 | return "Failed" |
| 73 | default: |
| 74 | return "Unknown" |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // String implements the Stringer interface for exchange refund state stringify. |
| 79 | func (s ExchangeRefundState) String() string { |
no outgoing calls
no test coverage detected