MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / String

Method String

cmd/cql-eth-exchange/tx_record.go:61–76  ·  view source on GitHub ↗

String implements the Stringer interface for exchange state stringify.

()

Source from the content-addressed store, hash-verified

59
60// String implements the Stringer interface for exchange state stringify.
61func (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.
79func (s ExchangeRefundState) String() string {

Callers 8

SetTxToTransferringFunction · 0.45
NewExchangeFunction · 0.45
processBlockMethod · 0.45
saveTxMethod · 0.45
getAccountBalanceMethod · 0.45
getAccountNonceMethod · 0.45
transferTokenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected