synapsecns/sanguine

View on GitHub
services/rfq/contracts/fastbridge/bridgestatus_string.go

Summary

Maintainability
A
2 hrs
Test Coverage
// Code generated by "stringer -type=BridgeStatus -linecomment"; DO NOT EDIT.

package fastbridge

import "strconv"

func _() {
    // An "invalid array index" compiler error signifies that the constant values have changed.
    // Re-run the stringer command to generate them again.
    var x [1]struct{}
    _ = x[NULL-0]
    _ = x[REQUESTED-1]
    _ = x[RelayerProved-2]
    _ = x[RelayerClaimed-3]
    _ = x[REFUNDED-4]
}

const _BridgeStatus_name = "NULLREQUESTEDRELAYER_PROVEDRELAYER_CLAIMEDREFUNDED"

var _BridgeStatus_index = [...]uint8{0, 4, 13, 27, 42, 50}

func (i BridgeStatus) String() string {
    if i >= BridgeStatus(len(_BridgeStatus_index)-1) {
        return "BridgeStatus(" + strconv.FormatInt(int64(i), 10) + ")"
    }
    return _BridgeStatus_name[_BridgeStatus_index[i]:_BridgeStatus_index[i+1]]
}