cbridge

package
v0.138.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCode_name = map[int32]string{
	0:    "ERROR_CODE_UNDEFINED",
	500:  "ERROR_CODE_COMMON",
	1001: "ERROR_NO_TOKEN_ON_DST_CHAIN",
	1002: "ERROR_NO_TOKEN_ON_SRC_CHAIN",
	1003: "ERROR_INIT_WITHDRAW_FAILED",
}
View Source
var ErrCode_value = map[string]int32{
	"ERROR_CODE_UNDEFINED":        0,
	"ERROR_CODE_COMMON":           500,
	"ERROR_NO_TOKEN_ON_DST_CHAIN": 1001,
	"ERROR_NO_TOKEN_ON_SRC_CHAIN": 1002,
	"ERROR_INIT_WITHDRAW_FAILED":  1003,
}
View Source
var TransferHistoryStatus_name = map[int32]string{
	0:  "TRANSFER_UNKNOWN",
	1:  "TRANSFER_SUBMITTING",
	2:  "TRANSFER_FAILED",
	3:  "TRANSFER_WAITING_FOR_SGN_CONFIRMATION",
	4:  "TRANSFER_WAITING_FOR_FUND_RELEASE",
	5:  "TRANSFER_COMPLETED",
	6:  "TRANSFER_TO_BE_REFUNDED",
	7:  "TRANSFER_REQUESTING_REFUND",
	8:  "TRANSFER_REFUND_TO_BE_CONFIRMED",
	9:  "TRANSFER_CONFIRMING_YOUR_REFUND",
	10: "TRANSFER_REFUNDED",
	11: "TRANSFER_DELAYED",
}
View Source
var TransferHistoryStatus_value = map[string]int32{
	"TRANSFER_UNKNOWN":                      0,
	"TRANSFER_SUBMITTING":                   1,
	"TRANSFER_FAILED":                       2,
	"TRANSFER_WAITING_FOR_SGN_CONFIRMATION": 3,
	"TRANSFER_WAITING_FOR_FUND_RELEASE":     4,
	"TRANSFER_COMPLETED":                    5,
	"TRANSFER_TO_BE_REFUNDED":               6,
	"TRANSFER_REQUESTING_REFUND":            7,
	"TRANSFER_REFUND_TO_BE_CONFIRMED":       8,
	"TRANSFER_CONFIRMING_YOUR_REFUND":       9,
	"TRANSFER_REFUNDED":                     10,
	"TRANSFER_DELAYED":                      11,
}
View Source
var WithdrawMethodType_name = map[int32]string{
	0: "WD_METHOD_TYPE_UNDEFINED",
	1: "WD_METHOD_TYPE_ONE_RM",
	2: "WD_METHOD_TYPE_ALL_IN_ONE",
	3: "WD_METHOD_TYPE_STAKING_CLAIM",
}
View Source
var WithdrawMethodType_value = map[string]int32{
	"WD_METHOD_TYPE_UNDEFINED":     0,
	"WD_METHOD_TYPE_ONE_RM":        1,
	"WD_METHOD_TYPE_ALL_IN_ONE":    2,
	"WD_METHOD_TYPE_STAKING_CLAIM": 3,
}
View Source
var XferStatus_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "OK_TO_RELAY",
	2:  "SUCCESS",
	3:  "BAD_LIQUIDITY",
	4:  "BAD_SLIPPAGE",
	5:  "BAD_TOKEN",
	6:  "REFUND_REQUESTED",
	7:  "REFUND_DONE",
	8:  "BAD_XFER_DISABLED",
	9:  "BAD_DEST_CHAIN",
	10: "EXCEED_MAX_OUT_AMOUNT",
	11: "XFER_DELAYED",
	12: "BAD_ADDRESS",
}
View Source
var XferStatus_value = map[string]int32{
	"UNKNOWN":               0,
	"OK_TO_RELAY":           1,
	"SUCCESS":               2,
	"BAD_LIQUIDITY":         3,
	"BAD_SLIPPAGE":          4,
	"BAD_TOKEN":             5,
	"REFUND_REQUESTED":      6,
	"REFUND_DONE":           7,
	"BAD_XFER_DISABLED":     8,
	"BAD_DEST_CHAIN":        9,
	"EXCEED_MAX_OUT_AMOUNT": 10,
	"XFER_DELAYED":          11,
	"BAD_ADDRESS":           12,
}

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Id                   uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Icon                 string   `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
	BlockDelay           uint32   `protobuf:"varint,4,opt,name=block_delay,json=blockDelay,proto3" json:"block_delay,omitempty"`
	GasTokenSymbol       string   `protobuf:"bytes,5,opt,name=gas_token_symbol,json=gasTokenSymbol,proto3" json:"gas_token_symbol,omitempty"`
	ExploreUrl           string   `protobuf:"bytes,6,opt,name=explore_url,json=exploreUrl,proto3" json:"explore_url,omitempty"`
	ContractAddr         string   `protobuf:"bytes,8,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"`
	DropGasAmt           string   `protobuf:"bytes,9,opt,name=drop_gas_amt,json=dropGasAmt,proto3" json:"drop_gas_amt,omitempty"`
	SuggestedBaseFee     float64  `protobuf:"fixed64,10,opt,name=suggested_base_fee,json=suggestedBaseFee,proto3" json:"suggested_base_fee,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Chain) Descriptor

func (*Chain) Descriptor() ([]byte, []int)

func (*Chain) GetBlockDelay

func (m *Chain) GetBlockDelay() uint32

func (*Chain) GetContractAddr

func (m *Chain) GetContractAddr() string

func (*Chain) GetDropGasAmt

func (m *Chain) GetDropGasAmt() string

func (*Chain) GetExploreUrl

func (m *Chain) GetExploreUrl() string

func (*Chain) GetGasTokenSymbol

func (m *Chain) GetGasTokenSymbol() string

func (*Chain) GetIcon

func (m *Chain) GetIcon() string

func (*Chain) GetId

func (m *Chain) GetId() uint32

func (*Chain) GetName

func (m *Chain) GetName() string

func (*Chain) GetSuggestedBaseFee

func (m *Chain) GetSuggestedBaseFee() float64

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) Reset

func (m *Chain) Reset()

func (*Chain) String

func (m *Chain) String() string

func (*Chain) XXX_DiscardUnknown

func (m *Chain) XXX_DiscardUnknown()

func (*Chain) XXX_Marshal

func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chain) XXX_Merge

func (m *Chain) XXX_Merge(src proto.Message)

func (*Chain) XXX_Size

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal

func (m *Chain) XXX_Unmarshal(b []byte) error

type ChainTokenInfo

type ChainTokenInfo struct {
	Token                []*TokenInfo `protobuf:"bytes,1,rep,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ChainTokenInfo) Descriptor

func (*ChainTokenInfo) Descriptor() ([]byte, []int)

func (*ChainTokenInfo) GetToken

func (m *ChainTokenInfo) GetToken() []*TokenInfo

func (*ChainTokenInfo) ProtoMessage

func (*ChainTokenInfo) ProtoMessage()

func (*ChainTokenInfo) Reset

func (m *ChainTokenInfo) Reset()

func (*ChainTokenInfo) String

func (m *ChainTokenInfo) String() string

func (*ChainTokenInfo) XXX_DiscardUnknown

func (m *ChainTokenInfo) XXX_DiscardUnknown()

func (*ChainTokenInfo) XXX_Marshal

func (m *ChainTokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainTokenInfo) XXX_Merge

func (m *ChainTokenInfo) XXX_Merge(src proto.Message)

func (*ChainTokenInfo) XXX_Size

func (m *ChainTokenInfo) XXX_Size() int

func (*ChainTokenInfo) XXX_Unmarshal

func (m *ChainTokenInfo) XXX_Unmarshal(b []byte) error

type ErrCode

type ErrCode int32
const (
	ErrCode_ERROR_CODE_UNDEFINED        ErrCode = 0
	ErrCode_ERROR_CODE_COMMON           ErrCode = 500
	ErrCode_ERROR_NO_TOKEN_ON_DST_CHAIN ErrCode = 1001
	ErrCode_ERROR_NO_TOKEN_ON_SRC_CHAIN ErrCode = 1002
	ErrCode_ERROR_INIT_WITHDRAW_FAILED  ErrCode = 1003
)

func (ErrCode) EnumDescriptor

func (ErrCode) EnumDescriptor() ([]byte, []int)

func (ErrCode) String

func (x ErrCode) String() string

type ErrMsg

type ErrMsg struct {
	Code                 ErrCode  `protobuf:"varint,1,opt,name=code,proto3,enum=cbridge.ErrCode" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ErrMsg) Descriptor

func (*ErrMsg) Descriptor() ([]byte, []int)

func (*ErrMsg) GetCode

func (m *ErrMsg) GetCode() ErrCode

func (*ErrMsg) GetMsg

func (m *ErrMsg) GetMsg() string

func (*ErrMsg) ProtoMessage

func (*ErrMsg) ProtoMessage()

func (*ErrMsg) Reset

func (m *ErrMsg) Reset()

func (*ErrMsg) String

func (m *ErrMsg) String() string

func (*ErrMsg) XXX_DiscardUnknown

func (m *ErrMsg) XXX_DiscardUnknown()

func (*ErrMsg) XXX_Marshal

func (m *ErrMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ErrMsg) XXX_Merge

func (m *ErrMsg) XXX_Merge(src proto.Message)

func (*ErrMsg) XXX_Size

func (m *ErrMsg) XXX_Size() int

func (*ErrMsg) XXX_Unmarshal

func (m *ErrMsg) XXX_Unmarshal(b []byte) error

type EstimateAmtRequest

type EstimateAmtRequest struct {
	SrcChainId           uint32   `protobuf:"varint,1,opt,name=src_chain_id,json=srcChainId,proto3" json:"src_chain_id,omitempty"`
	DstChainId           uint32   `protobuf:"varint,2,opt,name=dst_chain_id,json=dstChainId,proto3" json:"dst_chain_id,omitempty"`
	TokenSymbol          string   `protobuf:"bytes,3,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"`
	Amt                  string   `protobuf:"bytes,4,opt,name=amt,proto3" json:"amt,omitempty"`
	UsrAddr              string   `protobuf:"bytes,5,opt,name=usr_addr,json=usrAddr,proto3" json:"usr_addr,omitempty"`
	SlippageTolerance    uint32   `protobuf:"varint,6,opt,name=slippage_tolerance,json=slippageTolerance,proto3" json:"slippage_tolerance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateAmtRequest) Descriptor

func (*EstimateAmtRequest) Descriptor() ([]byte, []int)

func (*EstimateAmtRequest) GetAmt

func (m *EstimateAmtRequest) GetAmt() string

func (*EstimateAmtRequest) GetDstChainId

func (m *EstimateAmtRequest) GetDstChainId() uint32

func (*EstimateAmtRequest) GetSlippageTolerance

func (m *EstimateAmtRequest) GetSlippageTolerance() uint32

func (*EstimateAmtRequest) GetSrcChainId

func (m *EstimateAmtRequest) GetSrcChainId() uint32

func (*EstimateAmtRequest) GetTokenSymbol

func (m *EstimateAmtRequest) GetTokenSymbol() string

func (*EstimateAmtRequest) GetUsrAddr

func (m *EstimateAmtRequest) GetUsrAddr() string

func (*EstimateAmtRequest) ProtoMessage

func (*EstimateAmtRequest) ProtoMessage()

func (*EstimateAmtRequest) Reset

func (m *EstimateAmtRequest) Reset()

func (*EstimateAmtRequest) String

func (m *EstimateAmtRequest) String() string

func (*EstimateAmtRequest) XXX_DiscardUnknown

func (m *EstimateAmtRequest) XXX_DiscardUnknown()

func (*EstimateAmtRequest) XXX_Marshal

func (m *EstimateAmtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateAmtRequest) XXX_Merge

func (m *EstimateAmtRequest) XXX_Merge(src proto.Message)

func (*EstimateAmtRequest) XXX_Size

func (m *EstimateAmtRequest) XXX_Size() int

func (*EstimateAmtRequest) XXX_Unmarshal

func (m *EstimateAmtRequest) XXX_Unmarshal(b []byte) error

type EstimateAmtResponse

type EstimateAmtResponse struct {
	Err                  *ErrMsg  `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	EqValueTokenAmt      string   `protobuf:"bytes,2,opt,name=eq_value_token_amt,json=eqValueTokenAmt,proto3" json:"eq_value_token_amt,omitempty"`
	BridgeRate           float32  `protobuf:"fixed32,3,opt,name=bridge_rate,json=bridgeRate,proto3" json:"bridge_rate,omitempty"`
	PercFee              string   `protobuf:"bytes,4,opt,name=perc_fee,json=percFee,proto3" json:"perc_fee,omitempty"`
	BaseFee              string   `protobuf:"bytes,7,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	SlippageTolerance    uint32   `protobuf:"varint,5,opt,name=slippage_tolerance,json=slippageTolerance,proto3" json:"slippage_tolerance,omitempty"`
	MaxSlippage          uint32   `protobuf:"varint,6,opt,name=max_slippage,json=maxSlippage,proto3" json:"max_slippage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateAmtResponse) Descriptor

func (*EstimateAmtResponse) Descriptor() ([]byte, []int)

func (*EstimateAmtResponse) GetBaseFee

func (m *EstimateAmtResponse) GetBaseFee() string

func (*EstimateAmtResponse) GetBridgeRate

func (m *EstimateAmtResponse) GetBridgeRate() float32

func (*EstimateAmtResponse) GetEqValueTokenAmt

func (m *EstimateAmtResponse) GetEqValueTokenAmt() string

func (*EstimateAmtResponse) GetErr

func (m *EstimateAmtResponse) GetErr() *ErrMsg

func (*EstimateAmtResponse) GetMaxSlippage

func (m *EstimateAmtResponse) GetMaxSlippage() uint32

func (*EstimateAmtResponse) GetPercFee

func (m *EstimateAmtResponse) GetPercFee() string

func (*EstimateAmtResponse) GetSlippageTolerance

func (m *EstimateAmtResponse) GetSlippageTolerance() uint32

func (*EstimateAmtResponse) ProtoMessage

func (*EstimateAmtResponse) ProtoMessage()

func (*EstimateAmtResponse) Reset

func (m *EstimateAmtResponse) Reset()

func (*EstimateAmtResponse) String

func (m *EstimateAmtResponse) String() string

func (*EstimateAmtResponse) XXX_DiscardUnknown

func (m *EstimateAmtResponse) XXX_DiscardUnknown()

func (*EstimateAmtResponse) XXX_Marshal

func (m *EstimateAmtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateAmtResponse) XXX_Merge

func (m *EstimateAmtResponse) XXX_Merge(src proto.Message)

func (*EstimateAmtResponse) XXX_Size

func (m *EstimateAmtResponse) XXX_Size() int

func (*EstimateAmtResponse) XXX_Unmarshal

func (m *EstimateAmtResponse) XXX_Unmarshal(b []byte) error

type EstimateWithdrawAmt

type EstimateWithdrawAmt struct {
	EqValueTokenAmt      string   `protobuf:"bytes,1,opt,name=eq_value_token_amt,json=eqValueTokenAmt,proto3" json:"eq_value_token_amt,omitempty"`
	BridgeRate           float32  `protobuf:"fixed32,2,opt,name=bridge_rate,json=bridgeRate,proto3" json:"bridge_rate,omitempty"`
	PercFee              string   `protobuf:"bytes,3,opt,name=perc_fee,json=percFee,proto3" json:"perc_fee,omitempty"`
	BaseFee              string   `protobuf:"bytes,4,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
	SlippageTolerance    uint32   `protobuf:"varint,5,opt,name=slippage_tolerance,json=slippageTolerance,proto3" json:"slippage_tolerance,omitempty"`
	MaxSlippage          uint32   `protobuf:"varint,6,opt,name=max_slippage,json=maxSlippage,proto3" json:"max_slippage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateWithdrawAmt) Descriptor

func (*EstimateWithdrawAmt) Descriptor() ([]byte, []int)

func (*EstimateWithdrawAmt) GetBaseFee

func (m *EstimateWithdrawAmt) GetBaseFee() string

func (*EstimateWithdrawAmt) GetBridgeRate

func (m *EstimateWithdrawAmt) GetBridgeRate() float32

func (*EstimateWithdrawAmt) GetEqValueTokenAmt

func (m *EstimateWithdrawAmt) GetEqValueTokenAmt() string

func (*EstimateWithdrawAmt) GetMaxSlippage

func (m *EstimateWithdrawAmt) GetMaxSlippage() uint32

func (*EstimateWithdrawAmt) GetPercFee

func (m *EstimateWithdrawAmt) GetPercFee() string

func (*EstimateWithdrawAmt) GetSlippageTolerance

func (m *EstimateWithdrawAmt) GetSlippageTolerance() uint32

func (*EstimateWithdrawAmt) ProtoMessage

func (*EstimateWithdrawAmt) ProtoMessage()

func (*EstimateWithdrawAmt) Reset

func (m *EstimateWithdrawAmt) Reset()

func (*EstimateWithdrawAmt) String

func (m *EstimateWithdrawAmt) String() string

func (*EstimateWithdrawAmt) XXX_DiscardUnknown

func (m *EstimateWithdrawAmt) XXX_DiscardUnknown()

func (*EstimateWithdrawAmt) XXX_Marshal

func (m *EstimateWithdrawAmt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateWithdrawAmt) XXX_Merge

func (m *EstimateWithdrawAmt) XXX_Merge(src proto.Message)

func (*EstimateWithdrawAmt) XXX_Size

func (m *EstimateWithdrawAmt) XXX_Size() int

func (*EstimateWithdrawAmt) XXX_Unmarshal

func (m *EstimateWithdrawAmt) XXX_Unmarshal(b []byte) error

type EstimateWithdrawAmtRequest

type EstimateWithdrawAmtRequest struct {
	SrcWithdraws         []*WithdrawInfo `protobuf:"bytes,1,rep,name=src_withdraws,json=srcWithdraws,proto3" json:"src_withdraws,omitempty"`
	DstChainId           uint32          `protobuf:"varint,2,opt,name=dst_chain_id,json=dstChainId,proto3" json:"dst_chain_id,omitempty"`
	TokenSymbol          string          `protobuf:"bytes,3,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"`
	UsrAddr              string          `protobuf:"bytes,4,opt,name=usr_addr,json=usrAddr,proto3" json:"usr_addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*EstimateWithdrawAmtRequest) Descriptor

func (*EstimateWithdrawAmtRequest) Descriptor() ([]byte, []int)

func (*EstimateWithdrawAmtRequest) GetDstChainId

func (m *EstimateWithdrawAmtRequest) GetDstChainId() uint32

func (*EstimateWithdrawAmtRequest) GetSrcWithdraws

func (m *EstimateWithdrawAmtRequest) GetSrcWithdraws() []*WithdrawInfo

func (*EstimateWithdrawAmtRequest) GetTokenSymbol

func (m *EstimateWithdrawAmtRequest) GetTokenSymbol() string

func (*EstimateWithdrawAmtRequest) GetUsrAddr

func (m *EstimateWithdrawAmtRequest) GetUsrAddr() string

func (*EstimateWithdrawAmtRequest) ProtoMessage

func (*EstimateWithdrawAmtRequest) ProtoMessage()

func (*EstimateWithdrawAmtRequest) Reset

func (m *EstimateWithdrawAmtRequest) Reset()

func (*EstimateWithdrawAmtRequest) String

func (m *EstimateWithdrawAmtRequest) String() string

func (*EstimateWithdrawAmtRequest) XXX_DiscardUnknown

func (m *EstimateWithdrawAmtRequest) XXX_DiscardUnknown()

func (*EstimateWithdrawAmtRequest) XXX_Marshal

func (m *EstimateWithdrawAmtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateWithdrawAmtRequest) XXX_Merge

func (m *EstimateWithdrawAmtRequest) XXX_Merge(src proto.Message)

func (*EstimateWithdrawAmtRequest) XXX_Size

func (m *EstimateWithdrawAmtRequest) XXX_Size() int

func (*EstimateWithdrawAmtRequest) XXX_Unmarshal

func (m *EstimateWithdrawAmtRequest) XXX_Unmarshal(b []byte) error

type EstimateWithdrawAmtResponse

type EstimateWithdrawAmtResponse struct {
	Err                  *ErrMsg                         `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	ReqAmt               map[uint32]*EstimateWithdrawAmt `` /* 168-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func (*EstimateWithdrawAmtResponse) Descriptor

func (*EstimateWithdrawAmtResponse) Descriptor() ([]byte, []int)

func (*EstimateWithdrawAmtResponse) GetErr

func (m *EstimateWithdrawAmtResponse) GetErr() *ErrMsg

func (*EstimateWithdrawAmtResponse) GetReqAmt

func (*EstimateWithdrawAmtResponse) ProtoMessage

func (*EstimateWithdrawAmtResponse) ProtoMessage()

func (*EstimateWithdrawAmtResponse) Reset

func (m *EstimateWithdrawAmtResponse) Reset()

func (*EstimateWithdrawAmtResponse) String

func (m *EstimateWithdrawAmtResponse) String() string

func (*EstimateWithdrawAmtResponse) XXX_DiscardUnknown

func (m *EstimateWithdrawAmtResponse) XXX_DiscardUnknown()

func (*EstimateWithdrawAmtResponse) XXX_Marshal

func (m *EstimateWithdrawAmtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateWithdrawAmtResponse) XXX_Merge

func (m *EstimateWithdrawAmtResponse) XXX_Merge(src proto.Message)

func (*EstimateWithdrawAmtResponse) XXX_Size

func (m *EstimateWithdrawAmtResponse) XXX_Size() int

func (*EstimateWithdrawAmtResponse) XXX_Unmarshal

func (m *EstimateWithdrawAmtResponse) XXX_Unmarshal(b []byte) error

type GetTokenInfoRequest

type GetTokenInfoRequest struct {
	ChainId              uint32   `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	TokenSymbol          string   `protobuf:"bytes,2,opt,name=token_symbol,json=tokenSymbol,proto3" json:"token_symbol,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTokenInfoRequest) Descriptor

func (*GetTokenInfoRequest) Descriptor() ([]byte, []int)

func (*GetTokenInfoRequest) GetChainId

func (m *GetTokenInfoRequest) GetChainId() uint32

func (*GetTokenInfoRequest) GetTokenSymbol

func (m *GetTokenInfoRequest) GetTokenSymbol() string

func (*GetTokenInfoRequest) ProtoMessage

func (*GetTokenInfoRequest) ProtoMessage()

func (*GetTokenInfoRequest) Reset

func (m *GetTokenInfoRequest) Reset()

func (*GetTokenInfoRequest) String

func (m *GetTokenInfoRequest) String() string

func (*GetTokenInfoRequest) XXX_DiscardUnknown

func (m *GetTokenInfoRequest) XXX_DiscardUnknown()

func (*GetTokenInfoRequest) XXX_Marshal

func (m *GetTokenInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTokenInfoRequest) XXX_Merge

func (m *GetTokenInfoRequest) XXX_Merge(src proto.Message)

func (*GetTokenInfoRequest) XXX_Size

func (m *GetTokenInfoRequest) XXX_Size() int

func (*GetTokenInfoRequest) XXX_Unmarshal

func (m *GetTokenInfoRequest) XXX_Unmarshal(b []byte) error

type GetTokenInfoResponse

type GetTokenInfoResponse struct {
	Err                  *ErrMsg    `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	TokenInfo            *TokenInfo `protobuf:"bytes,2,opt,name=token_info,json=tokenInfo,proto3" json:"token_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetTokenInfoResponse) Descriptor

func (*GetTokenInfoResponse) Descriptor() ([]byte, []int)

func (*GetTokenInfoResponse) GetErr

func (m *GetTokenInfoResponse) GetErr() *ErrMsg

func (*GetTokenInfoResponse) GetTokenInfo

func (m *GetTokenInfoResponse) GetTokenInfo() *TokenInfo

func (*GetTokenInfoResponse) ProtoMessage

func (*GetTokenInfoResponse) ProtoMessage()

func (*GetTokenInfoResponse) Reset

func (m *GetTokenInfoResponse) Reset()

func (*GetTokenInfoResponse) String

func (m *GetTokenInfoResponse) String() string

func (*GetTokenInfoResponse) XXX_DiscardUnknown

func (m *GetTokenInfoResponse) XXX_DiscardUnknown()

func (*GetTokenInfoResponse) XXX_Marshal

func (m *GetTokenInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTokenInfoResponse) XXX_Merge

func (m *GetTokenInfoResponse) XXX_Merge(src proto.Message)

func (*GetTokenInfoResponse) XXX_Size

func (m *GetTokenInfoResponse) XXX_Size() int

func (*GetTokenInfoResponse) XXX_Unmarshal

func (m *GetTokenInfoResponse) XXX_Unmarshal(b []byte) error

type GetTransferConfigsRequest

type GetTransferConfigsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTransferConfigsRequest) Descriptor

func (*GetTransferConfigsRequest) Descriptor() ([]byte, []int)

func (*GetTransferConfigsRequest) ProtoMessage

func (*GetTransferConfigsRequest) ProtoMessage()

func (*GetTransferConfigsRequest) Reset

func (m *GetTransferConfigsRequest) Reset()

func (*GetTransferConfigsRequest) String

func (m *GetTransferConfigsRequest) String() string

func (*GetTransferConfigsRequest) XXX_DiscardUnknown

func (m *GetTransferConfigsRequest) XXX_DiscardUnknown()

func (*GetTransferConfigsRequest) XXX_Marshal

func (m *GetTransferConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransferConfigsRequest) XXX_Merge

func (m *GetTransferConfigsRequest) XXX_Merge(src proto.Message)

func (*GetTransferConfigsRequest) XXX_Size

func (m *GetTransferConfigsRequest) XXX_Size() int

func (*GetTransferConfigsRequest) XXX_Unmarshal

func (m *GetTransferConfigsRequest) XXX_Unmarshal(b []byte) error

type GetTransferConfigsResponse

type GetTransferConfigsResponse struct {
	Err                       *ErrMsg                    `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	Chains                    []*Chain                   `protobuf:"bytes,2,rep,name=chains,proto3" json:"chains,omitempty"`
	ChainToken                map[uint32]*ChainTokenInfo `` /* 180-byte string literal not displayed */
	FarmingRewardContractAddr string                     `` /* 140-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{}                   `json:"-"`
	XXX_unrecognized          []byte                     `json:"-"`
	XXX_sizecache             int32                      `json:"-"`
}

func (*GetTransferConfigsResponse) Descriptor

func (*GetTransferConfigsResponse) Descriptor() ([]byte, []int)

func (*GetTransferConfigsResponse) GetChainToken

func (m *GetTransferConfigsResponse) GetChainToken() map[uint32]*ChainTokenInfo

func (*GetTransferConfigsResponse) GetChains

func (m *GetTransferConfigsResponse) GetChains() []*Chain

func (*GetTransferConfigsResponse) GetErr

func (m *GetTransferConfigsResponse) GetErr() *ErrMsg

func (*GetTransferConfigsResponse) GetFarmingRewardContractAddr

func (m *GetTransferConfigsResponse) GetFarmingRewardContractAddr() string

func (*GetTransferConfigsResponse) ProtoMessage

func (*GetTransferConfigsResponse) ProtoMessage()

func (*GetTransferConfigsResponse) Reset

func (m *GetTransferConfigsResponse) Reset()

func (*GetTransferConfigsResponse) String

func (m *GetTransferConfigsResponse) String() string

func (*GetTransferConfigsResponse) XXX_DiscardUnknown

func (m *GetTransferConfigsResponse) XXX_DiscardUnknown()

func (*GetTransferConfigsResponse) XXX_Marshal

func (m *GetTransferConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransferConfigsResponse) XXX_Merge

func (m *GetTransferConfigsResponse) XXX_Merge(src proto.Message)

func (*GetTransferConfigsResponse) XXX_Size

func (m *GetTransferConfigsResponse) XXX_Size() int

func (*GetTransferConfigsResponse) XXX_Unmarshal

func (m *GetTransferConfigsResponse) XXX_Unmarshal(b []byte) error

type GetTransferStatusRequest

type GetTransferStatusRequest struct {
	TransferId           string   `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTransferStatusRequest) Descriptor

func (*GetTransferStatusRequest) Descriptor() ([]byte, []int)

func (*GetTransferStatusRequest) GetTransferId

func (m *GetTransferStatusRequest) GetTransferId() string

func (*GetTransferStatusRequest) ProtoMessage

func (*GetTransferStatusRequest) ProtoMessage()

func (*GetTransferStatusRequest) Reset

func (m *GetTransferStatusRequest) Reset()

func (*GetTransferStatusRequest) String

func (m *GetTransferStatusRequest) String() string

func (*GetTransferStatusRequest) XXX_DiscardUnknown

func (m *GetTransferStatusRequest) XXX_DiscardUnknown()

func (*GetTransferStatusRequest) XXX_Marshal

func (m *GetTransferStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransferStatusRequest) XXX_Merge

func (m *GetTransferStatusRequest) XXX_Merge(src proto.Message)

func (*GetTransferStatusRequest) XXX_Size

func (m *GetTransferStatusRequest) XXX_Size() int

func (*GetTransferStatusRequest) XXX_Unmarshal

func (m *GetTransferStatusRequest) XXX_Unmarshal(b []byte) error

type GetTransferStatusResponse

type GetTransferStatusResponse struct {
	Err                  *ErrMsg               `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	Status               TransferHistoryStatus `protobuf:"varint,2,opt,name=status,proto3,enum=cbridge.TransferHistoryStatus" json:"status,omitempty"`
	WdOnchain            []byte                `protobuf:"bytes,3,opt,name=wd_onchain,json=wdOnchain,proto3" json:"wd_onchain,omitempty"`
	SortedSigs           [][]byte              `protobuf:"bytes,4,rep,name=sorted_sigs,json=sortedSigs,proto3" json:"sorted_sigs,omitempty"`
	Signers              [][]byte              `protobuf:"bytes,5,rep,name=signers,proto3" json:"signers,omitempty"`
	Powers               [][]byte              `protobuf:"bytes,6,rep,name=powers,proto3" json:"powers,omitempty"`
	RefundReason         XferStatus            `protobuf:"varint,7,opt,name=refund_reason,json=refundReason,proto3,enum=cbridge.XferStatus" json:"refund_reason,omitempty"`
	BlockDelay           uint32                `protobuf:"varint,8,opt,name=block_delay,json=blockDelay,proto3" json:"block_delay,omitempty"`
	SrcBlockTxLink       string                `protobuf:"bytes,9,opt,name=src_block_tx_link,json=srcBlockTxLink,proto3" json:"src_block_tx_link,omitempty"`
	DstBlockTxLink       string                `protobuf:"bytes,10,opt,name=dst_block_tx_link,json=dstBlockTxLink,proto3" json:"dst_block_tx_link,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*GetTransferStatusResponse) Descriptor

func (*GetTransferStatusResponse) Descriptor() ([]byte, []int)

func (*GetTransferStatusResponse) GetBlockDelay

func (m *GetTransferStatusResponse) GetBlockDelay() uint32
func (m *GetTransferStatusResponse) GetDstBlockTxLink() string

func (*GetTransferStatusResponse) GetErr

func (m *GetTransferStatusResponse) GetErr() *ErrMsg

func (*GetTransferStatusResponse) GetPowers

func (m *GetTransferStatusResponse) GetPowers() [][]byte

func (*GetTransferStatusResponse) GetRefundReason

func (m *GetTransferStatusResponse) GetRefundReason() XferStatus

func (*GetTransferStatusResponse) GetSigners

func (m *GetTransferStatusResponse) GetSigners() [][]byte

func (*GetTransferStatusResponse) GetSortedSigs

func (m *GetTransferStatusResponse) GetSortedSigs() [][]byte
func (m *GetTransferStatusResponse) GetSrcBlockTxLink() string

func (*GetTransferStatusResponse) GetStatus

func (*GetTransferStatusResponse) GetWdOnchain

func (m *GetTransferStatusResponse) GetWdOnchain() []byte

func (*GetTransferStatusResponse) ProtoMessage

func (*GetTransferStatusResponse) ProtoMessage()

func (*GetTransferStatusResponse) Reset

func (m *GetTransferStatusResponse) Reset()

func (*GetTransferStatusResponse) String

func (m *GetTransferStatusResponse) String() string

func (*GetTransferStatusResponse) XXX_DiscardUnknown

func (m *GetTransferStatusResponse) XXX_DiscardUnknown()

func (*GetTransferStatusResponse) XXX_Marshal

func (m *GetTransferStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransferStatusResponse) XXX_Merge

func (m *GetTransferStatusResponse) XXX_Merge(src proto.Message)

func (*GetTransferStatusResponse) XXX_Size

func (m *GetTransferStatusResponse) XXX_Size() int

func (*GetTransferStatusResponse) XXX_Unmarshal

func (m *GetTransferStatusResponse) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Decimal              int32    `protobuf:"varint,3,opt,name=decimal,proto3" json:"decimal,omitempty"`
	XferDisabled         bool     `protobuf:"varint,4,opt,name=xfer_disabled,json=xferDisabled,proto3" json:"xfer_disabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetAddress

func (m *Token) GetAddress() string

func (*Token) GetDecimal

func (m *Token) GetDecimal() int32

func (*Token) GetSymbol

func (m *Token) GetSymbol() string

func (*Token) GetXferDisabled

func (m *Token) GetXferDisabled() bool

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

type TokenInfo

type TokenInfo struct {
	Token                *Token   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Icon                 string   `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokenInfo) Descriptor

func (*TokenInfo) Descriptor() ([]byte, []int)

func (*TokenInfo) GetIcon

func (m *TokenInfo) GetIcon() string

func (*TokenInfo) GetName

func (m *TokenInfo) GetName() string

func (*TokenInfo) GetToken

func (m *TokenInfo) GetToken() *Token

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) Reset

func (m *TokenInfo) Reset()

func (*TokenInfo) String

func (m *TokenInfo) String() string

func (*TokenInfo) XXX_DiscardUnknown

func (m *TokenInfo) XXX_DiscardUnknown()

func (*TokenInfo) XXX_Marshal

func (m *TokenInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenInfo) XXX_Merge

func (m *TokenInfo) XXX_Merge(src proto.Message)

func (*TokenInfo) XXX_Size

func (m *TokenInfo) XXX_Size() int

func (*TokenInfo) XXX_Unmarshal

func (m *TokenInfo) XXX_Unmarshal(b []byte) error

type TransferHistory

type TransferHistory struct {
	TransferId           string                `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	SrcSendInfo          *TransferInfo         `protobuf:"bytes,2,opt,name=src_send_info,json=srcSendInfo,proto3" json:"src_send_info,omitempty"`
	DstReceivedInfo      *TransferInfo         `protobuf:"bytes,3,opt,name=dst_received_info,json=dstReceivedInfo,proto3" json:"dst_received_info,omitempty"`
	Ts                   uint64                `protobuf:"varint,4,opt,name=ts,proto3" json:"ts,omitempty"`
	SrcBlockTxLink       string                `protobuf:"bytes,5,opt,name=src_block_tx_link,json=srcBlockTxLink,proto3" json:"src_block_tx_link,omitempty"`
	DstBlockTxLink       string                `protobuf:"bytes,6,opt,name=dst_block_tx_link,json=dstBlockTxLink,proto3" json:"dst_block_tx_link,omitempty"`
	Status               TransferHistoryStatus `protobuf:"varint,7,opt,name=status,proto3,enum=cbridge.TransferHistoryStatus" json:"status,omitempty"`
	RefundReason         XferStatus            `protobuf:"varint,8,opt,name=refund_reason,json=refundReason,proto3,enum=cbridge.XferStatus" json:"refund_reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*TransferHistory) Descriptor

func (*TransferHistory) Descriptor() ([]byte, []int)
func (m *TransferHistory) GetDstBlockTxLink() string

func (*TransferHistory) GetDstReceivedInfo

func (m *TransferHistory) GetDstReceivedInfo() *TransferInfo

func (*TransferHistory) GetRefundReason

func (m *TransferHistory) GetRefundReason() XferStatus
func (m *TransferHistory) GetSrcBlockTxLink() string

func (*TransferHistory) GetSrcSendInfo

func (m *TransferHistory) GetSrcSendInfo() *TransferInfo

func (*TransferHistory) GetStatus

func (m *TransferHistory) GetStatus() TransferHistoryStatus

func (*TransferHistory) GetTransferId

func (m *TransferHistory) GetTransferId() string

func (*TransferHistory) GetTs

func (m *TransferHistory) GetTs() uint64

func (*TransferHistory) ProtoMessage

func (*TransferHistory) ProtoMessage()

func (*TransferHistory) Reset

func (m *TransferHistory) Reset()

func (*TransferHistory) String

func (m *TransferHistory) String() string

func (*TransferHistory) XXX_DiscardUnknown

func (m *TransferHistory) XXX_DiscardUnknown()

func (*TransferHistory) XXX_Marshal

func (m *TransferHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferHistory) XXX_Merge

func (m *TransferHistory) XXX_Merge(src proto.Message)

func (*TransferHistory) XXX_Size

func (m *TransferHistory) XXX_Size() int

func (*TransferHistory) XXX_Unmarshal

func (m *TransferHistory) XXX_Unmarshal(b []byte) error

type TransferHistoryRequest

type TransferHistoryRequest struct {
	NextPageToken        string   `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	PageSize             uint64   `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Addr                 string   `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransferHistoryRequest) Descriptor

func (*TransferHistoryRequest) Descriptor() ([]byte, []int)

func (*TransferHistoryRequest) GetAddr

func (m *TransferHistoryRequest) GetAddr() string

func (*TransferHistoryRequest) GetNextPageToken

func (m *TransferHistoryRequest) GetNextPageToken() string

func (*TransferHistoryRequest) GetPageSize

func (m *TransferHistoryRequest) GetPageSize() uint64

func (*TransferHistoryRequest) ProtoMessage

func (*TransferHistoryRequest) ProtoMessage()

func (*TransferHistoryRequest) Reset

func (m *TransferHistoryRequest) Reset()

func (*TransferHistoryRequest) String

func (m *TransferHistoryRequest) String() string

func (*TransferHistoryRequest) XXX_DiscardUnknown

func (m *TransferHistoryRequest) XXX_DiscardUnknown()

func (*TransferHistoryRequest) XXX_Marshal

func (m *TransferHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferHistoryRequest) XXX_Merge

func (m *TransferHistoryRequest) XXX_Merge(src proto.Message)

func (*TransferHistoryRequest) XXX_Size

func (m *TransferHistoryRequest) XXX_Size() int

func (*TransferHistoryRequest) XXX_Unmarshal

func (m *TransferHistoryRequest) XXX_Unmarshal(b []byte) error

type TransferHistoryResponse

type TransferHistoryResponse struct {
	Err                  *ErrMsg            `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	History              []*TransferHistory `protobuf:"bytes,2,rep,name=history,proto3" json:"history,omitempty"`
	NextPageToken        string             `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	CurrentSize          uint64             `protobuf:"varint,4,opt,name=current_size,json=currentSize,proto3" json:"current_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*TransferHistoryResponse) Descriptor

func (*TransferHistoryResponse) Descriptor() ([]byte, []int)

func (*TransferHistoryResponse) GetCurrentSize

func (m *TransferHistoryResponse) GetCurrentSize() uint64

func (*TransferHistoryResponse) GetErr

func (m *TransferHistoryResponse) GetErr() *ErrMsg

func (*TransferHistoryResponse) GetHistory

func (m *TransferHistoryResponse) GetHistory() []*TransferHistory

func (*TransferHistoryResponse) GetNextPageToken

func (m *TransferHistoryResponse) GetNextPageToken() string

func (*TransferHistoryResponse) ProtoMessage

func (*TransferHistoryResponse) ProtoMessage()

func (*TransferHistoryResponse) Reset

func (m *TransferHistoryResponse) Reset()

func (*TransferHistoryResponse) String

func (m *TransferHistoryResponse) String() string

func (*TransferHistoryResponse) XXX_DiscardUnknown

func (m *TransferHistoryResponse) XXX_DiscardUnknown()

func (*TransferHistoryResponse) XXX_Marshal

func (m *TransferHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferHistoryResponse) XXX_Merge

func (m *TransferHistoryResponse) XXX_Merge(src proto.Message)

func (*TransferHistoryResponse) XXX_Size

func (m *TransferHistoryResponse) XXX_Size() int

func (*TransferHistoryResponse) XXX_Unmarshal

func (m *TransferHistoryResponse) XXX_Unmarshal(b []byte) error

type TransferHistoryStatus

type TransferHistoryStatus int32
const (
	TransferHistoryStatus_TRANSFER_UNKNOWN                      TransferHistoryStatus = 0
	TransferHistoryStatus_TRANSFER_SUBMITTING                   TransferHistoryStatus = 1
	TransferHistoryStatus_TRANSFER_FAILED                       TransferHistoryStatus = 2
	TransferHistoryStatus_TRANSFER_WAITING_FOR_SGN_CONFIRMATION TransferHistoryStatus = 3
	TransferHistoryStatus_TRANSFER_WAITING_FOR_FUND_RELEASE     TransferHistoryStatus = 4
	TransferHistoryStatus_TRANSFER_COMPLETED                    TransferHistoryStatus = 5
	TransferHistoryStatus_TRANSFER_TO_BE_REFUNDED               TransferHistoryStatus = 6
	TransferHistoryStatus_TRANSFER_REQUESTING_REFUND            TransferHistoryStatus = 7
	TransferHistoryStatus_TRANSFER_REFUND_TO_BE_CONFIRMED       TransferHistoryStatus = 8
	TransferHistoryStatus_TRANSFER_CONFIRMING_YOUR_REFUND       TransferHistoryStatus = 9
	TransferHistoryStatus_TRANSFER_REFUNDED                     TransferHistoryStatus = 10
	TransferHistoryStatus_TRANSFER_DELAYED                      TransferHistoryStatus = 11
)

func (TransferHistoryStatus) EnumDescriptor

func (TransferHistoryStatus) EnumDescriptor() ([]byte, []int)

func (TransferHistoryStatus) String

func (x TransferHistoryStatus) String() string

type TransferInfo

type TransferInfo struct {
	Chain                *Chain   `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Token                *Token   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Amount               string   `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransferInfo) Descriptor

func (*TransferInfo) Descriptor() ([]byte, []int)

func (*TransferInfo) GetAmount

func (m *TransferInfo) GetAmount() string

func (*TransferInfo) GetChain

func (m *TransferInfo) GetChain() *Chain

func (*TransferInfo) GetToken

func (m *TransferInfo) GetToken() *Token

func (*TransferInfo) ProtoMessage

func (*TransferInfo) ProtoMessage()

func (*TransferInfo) Reset

func (m *TransferInfo) Reset()

func (*TransferInfo) String

func (m *TransferInfo) String() string

func (*TransferInfo) XXX_DiscardUnknown

func (m *TransferInfo) XXX_DiscardUnknown()

func (*TransferInfo) XXX_Marshal

func (m *TransferInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferInfo) XXX_Merge

func (m *TransferInfo) XXX_Merge(src proto.Message)

func (*TransferInfo) XXX_Size

func (m *TransferInfo) XXX_Size() int

func (*TransferInfo) XXX_Unmarshal

func (m *TransferInfo) XXX_Unmarshal(b []byte) error

type WithdrawInfo

type WithdrawInfo struct {
	ChainId              uint32   `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Amount               string   `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	SlippageTolerance    uint32   `protobuf:"varint,3,opt,name=slippage_tolerance,json=slippageTolerance,proto3" json:"slippage_tolerance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WithdrawInfo) Descriptor

func (*WithdrawInfo) Descriptor() ([]byte, []int)

func (*WithdrawInfo) GetAmount

func (m *WithdrawInfo) GetAmount() string

func (*WithdrawInfo) GetChainId

func (m *WithdrawInfo) GetChainId() uint32

func (*WithdrawInfo) GetSlippageTolerance

func (m *WithdrawInfo) GetSlippageTolerance() uint32

func (*WithdrawInfo) ProtoMessage

func (*WithdrawInfo) ProtoMessage()

func (*WithdrawInfo) Reset

func (m *WithdrawInfo) Reset()

func (*WithdrawInfo) String

func (m *WithdrawInfo) String() string

func (*WithdrawInfo) XXX_DiscardUnknown

func (m *WithdrawInfo) XXX_DiscardUnknown()

func (*WithdrawInfo) XXX_Marshal

func (m *WithdrawInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawInfo) XXX_Merge

func (m *WithdrawInfo) XXX_Merge(src proto.Message)

func (*WithdrawInfo) XXX_Size

func (m *WithdrawInfo) XXX_Size() int

func (*WithdrawInfo) XXX_Unmarshal

func (m *WithdrawInfo) XXX_Unmarshal(b []byte) error

type WithdrawLiquidityRequest

type WithdrawLiquidityRequest struct {
	WithdrawReq          []byte             `protobuf:"bytes,1,opt,name=withdraw_req,json=withdrawReq,proto3" json:"withdraw_req,omitempty"`
	Sig                  []byte             `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	EstimatedReceivedAmt string             `protobuf:"bytes,3,opt,name=estimated_received_amt,json=estimatedReceivedAmt,proto3" json:"estimated_received_amt,omitempty"`
	MethodType           WithdrawMethodType `protobuf:"varint,4,opt,name=method_type,json=methodType,proto3,enum=cbridge.WithdrawMethodType" json:"method_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*WithdrawLiquidityRequest) Descriptor

func (*WithdrawLiquidityRequest) Descriptor() ([]byte, []int)

func (*WithdrawLiquidityRequest) GetEstimatedReceivedAmt

func (m *WithdrawLiquidityRequest) GetEstimatedReceivedAmt() string

func (*WithdrawLiquidityRequest) GetMethodType

func (m *WithdrawLiquidityRequest) GetMethodType() WithdrawMethodType

func (*WithdrawLiquidityRequest) GetSig

func (m *WithdrawLiquidityRequest) GetSig() []byte

func (*WithdrawLiquidityRequest) GetWithdrawReq

func (m *WithdrawLiquidityRequest) GetWithdrawReq() []byte

func (*WithdrawLiquidityRequest) ProtoMessage

func (*WithdrawLiquidityRequest) ProtoMessage()

func (*WithdrawLiquidityRequest) Reset

func (m *WithdrawLiquidityRequest) Reset()

func (*WithdrawLiquidityRequest) String

func (m *WithdrawLiquidityRequest) String() string

func (*WithdrawLiquidityRequest) XXX_DiscardUnknown

func (m *WithdrawLiquidityRequest) XXX_DiscardUnknown()

func (*WithdrawLiquidityRequest) XXX_Marshal

func (m *WithdrawLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawLiquidityRequest) XXX_Merge

func (m *WithdrawLiquidityRequest) XXX_Merge(src proto.Message)

func (*WithdrawLiquidityRequest) XXX_Size

func (m *WithdrawLiquidityRequest) XXX_Size() int

func (*WithdrawLiquidityRequest) XXX_Unmarshal

func (m *WithdrawLiquidityRequest) XXX_Unmarshal(b []byte) error

type WithdrawLiquidityResponse

type WithdrawLiquidityResponse struct {
	Err                  *ErrMsg  `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	SeqNum               uint64   `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WithdrawLiquidityResponse) Descriptor

func (*WithdrawLiquidityResponse) Descriptor() ([]byte, []int)

func (*WithdrawLiquidityResponse) GetErr

func (m *WithdrawLiquidityResponse) GetErr() *ErrMsg

func (*WithdrawLiquidityResponse) GetSeqNum

func (m *WithdrawLiquidityResponse) GetSeqNum() uint64

func (*WithdrawLiquidityResponse) ProtoMessage

func (*WithdrawLiquidityResponse) ProtoMessage()

func (*WithdrawLiquidityResponse) Reset

func (m *WithdrawLiquidityResponse) Reset()

func (*WithdrawLiquidityResponse) String

func (m *WithdrawLiquidityResponse) String() string

func (*WithdrawLiquidityResponse) XXX_DiscardUnknown

func (m *WithdrawLiquidityResponse) XXX_DiscardUnknown()

func (*WithdrawLiquidityResponse) XXX_Marshal

func (m *WithdrawLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawLiquidityResponse) XXX_Merge

func (m *WithdrawLiquidityResponse) XXX_Merge(src proto.Message)

func (*WithdrawLiquidityResponse) XXX_Size

func (m *WithdrawLiquidityResponse) XXX_Size() int

func (*WithdrawLiquidityResponse) XXX_Unmarshal

func (m *WithdrawLiquidityResponse) XXX_Unmarshal(b []byte) error

type WithdrawMethodType

type WithdrawMethodType int32
const (
	WithdrawMethodType_WD_METHOD_TYPE_UNDEFINED     WithdrawMethodType = 0
	WithdrawMethodType_WD_METHOD_TYPE_ONE_RM        WithdrawMethodType = 1
	WithdrawMethodType_WD_METHOD_TYPE_ALL_IN_ONE    WithdrawMethodType = 2
	WithdrawMethodType_WD_METHOD_TYPE_STAKING_CLAIM WithdrawMethodType = 3
)

func (WithdrawMethodType) EnumDescriptor

func (WithdrawMethodType) EnumDescriptor() ([]byte, []int)

func (WithdrawMethodType) String

func (x WithdrawMethodType) String() string

type XferStatus

type XferStatus int32

========== x/cbridge kv value types for src transfer id normal status flow: after sgn applied user's Send event, status is OK_TO_RELAY. then after apply Relay event status is SUCCESS 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 refund_requested when sgn apply withdrawDone event, status becomes REFUND_DONE

const (
	XferStatus_UNKNOWN XferStatus = 0
	// normal flow only has ok then success
	XferStatus_OK_TO_RELAY XferStatus = 1
	XferStatus_SUCCESS     XferStatus = 2
	// can't relay flow status
	XferStatus_BAD_LIQUIDITY XferStatus = 3
	XferStatus_BAD_SLIPPAGE  XferStatus = 4
	XferStatus_BAD_TOKEN     XferStatus = 5
	// refund, using withdraw flow
	XferStatus_REFUND_REQUESTED  XferStatus = 6
	XferStatus_REFUND_DONE       XferStatus = 7
	XferStatus_BAD_XFER_DISABLED XferStatus = 8
	// come, we should go to refund flow.
	XferStatus_BAD_DEST_CHAIN        XferStatus = 9
	XferStatus_EXCEED_MAX_OUT_AMOUNT XferStatus = 10
	XferStatus_XFER_DELAYED          XferStatus = 11
	// delayThreshold
	XferStatus_BAD_ADDRESS XferStatus = 12
)

func (XferStatus) EnumDescriptor

func (XferStatus) EnumDescriptor() ([]byte, []int)

func (XferStatus) String

func (x XferStatus) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL