github.com/status-im/status-go@v1.1.0/services/wallet/router/pathprocessor/cbridge/cbridge.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: cbridge.proto 3 4 package cbridge 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // ========== x/cbridge kv value types 24 // for src transfer id 25 // normal status flow: after sgn applied user's Send event, status is OK_TO_RELAY. then after apply Relay event 26 // status is SUCCESS 27 // can't relay flow: after apply send, status will be BAD_xxx, and there'll be no relay. so user need to InitWithdraw, status becomes 28 // refund_requested when sgn apply withdrawDone event, status becomes REFUND_DONE 29 type XferStatus int32 30 31 const ( 32 XferStatus_UNKNOWN XferStatus = 0 33 // normal flow only has ok then success 34 XferStatus_OK_TO_RELAY XferStatus = 1 35 XferStatus_SUCCESS XferStatus = 2 36 // can't relay flow status 37 XferStatus_BAD_LIQUIDITY XferStatus = 3 38 XferStatus_BAD_SLIPPAGE XferStatus = 4 39 XferStatus_BAD_TOKEN XferStatus = 5 40 // refund, using withdraw flow 41 XferStatus_REFUND_REQUESTED XferStatus = 6 42 XferStatus_REFUND_DONE XferStatus = 7 43 XferStatus_BAD_XFER_DISABLED XferStatus = 8 44 // come, we should go to refund flow. 45 XferStatus_BAD_DEST_CHAIN XferStatus = 9 46 XferStatus_EXCEED_MAX_OUT_AMOUNT XferStatus = 10 47 XferStatus_XFER_DELAYED XferStatus = 11 48 // delayThreshold 49 XferStatus_BAD_ADDRESS XferStatus = 12 50 ) 51 52 var XferStatus_name = map[int32]string{ 53 0: "UNKNOWN", 54 1: "OK_TO_RELAY", 55 2: "SUCCESS", 56 3: "BAD_LIQUIDITY", 57 4: "BAD_SLIPPAGE", 58 5: "BAD_TOKEN", 59 6: "REFUND_REQUESTED", 60 7: "REFUND_DONE", 61 8: "BAD_XFER_DISABLED", 62 9: "BAD_DEST_CHAIN", 63 10: "EXCEED_MAX_OUT_AMOUNT", 64 11: "XFER_DELAYED", 65 12: "BAD_ADDRESS", 66 } 67 68 var XferStatus_value = map[string]int32{ 69 "UNKNOWN": 0, 70 "OK_TO_RELAY": 1, 71 "SUCCESS": 2, 72 "BAD_LIQUIDITY": 3, 73 "BAD_SLIPPAGE": 4, 74 "BAD_TOKEN": 5, 75 "REFUND_REQUESTED": 6, 76 "REFUND_DONE": 7, 77 "BAD_XFER_DISABLED": 8, 78 "BAD_DEST_CHAIN": 9, 79 "EXCEED_MAX_OUT_AMOUNT": 10, 80 "XFER_DELAYED": 11, 81 "BAD_ADDRESS": 12, 82 } 83 84 func (x XferStatus) String() string { 85 return proto.EnumName(XferStatus_name, int32(x)) 86 } 87 88 func (XferStatus) EnumDescriptor() ([]byte, []int) { 89 return fileDescriptor_176f0c31123a8108, []int{0} 90 } 91 92 func init() { 93 proto.RegisterEnum("cbridge.XferStatus", XferStatus_name, XferStatus_value) 94 } 95 96 func init() { 97 proto.RegisterFile("cbridge.proto", fileDescriptor_176f0c31123a8108) 98 } 99 100 var fileDescriptor_176f0c31123a8108 = []byte{ 101 // 255 bytes of a gzipped FileDescriptorProto 102 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x2c, 0x90, 0xcd, 0x52, 0xc3, 0x30, 103 0x0c, 0x84, 0x29, 0x3f, 0x0d, 0x55, 0x12, 0x50, 0x3d, 0xf4, 0xc0, 0x2b, 0x70, 0x08, 0x07, 0x9e, 104 0xc0, 0x89, 0x54, 0xf0, 0x24, 0xb5, 0xdb, 0xd8, 0x1e, 0x52, 0x2e, 0x1e, 0x0a, 0x85, 0xe1, 0x54, 105 0x26, 0x84, 0xa7, 0xe7,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 0x45, 0x71, 0x3b, 0x76, 0xb1, 0x9b, 0xfe, 0x75, 117 0x73, 0xf7, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x04, 0xef, 0xc8, 0x2c, 0x01, 0x00, 0x00, 118 }