Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainTypeToString ¶ added in v1.0.1
func QGasSwapStateToString ¶ added in v1.0.1
func QGasSwapStateToString(t QGasSwapState) string
func SwapStateToString ¶ added in v1.0.1
Types ¶
type QGasSwapInfo ¶ added in v1.0.1
type QGasSwapInfo struct { gorm.Model SwapType QGasSwapType `msg:"swapType" json:"swapType"` State QGasSwapState `msg:"state" json:"state"` Chain ChainType `msg:"chain" json:"chain"` Amount int64 `msg:"amount" json:"amount"` QlcUserAddr string `msg:"qlcUserAddr" json:"qlcUserAddr"` OwnerAddress string `msg:"ownerAddress" json:"ownerAddress"` QlcSendTxHash string `msg:"qlcSendTxHash" json:"qlcSendTxHash"` QlcRewardTxHash string `msg:"qlcRewardTxHash" json:"qlcRewardTxHash"` UserTxHash string `msg:"userTxHash" json:"userTxHash"` BlockStr string `msg:"blockStr" json:"blockStr"` CrossChainTxHash string `msg:"crossChainTxHash" json:"crossChainTxHash"` CrossChainUserAddr string `msg:"crossChainUserAddr" json:"crossChainUserAddr"` StartTime int64 `msg:"startTime" json:"startTime"` LastModifyTime int64 `msg:"lastModifyTime" json:"lastModifyTime"` }
type QGasSwapState ¶ added in v1.0.1
type QGasSwapState byte
const ( // pledge QGasPledgeInit QGasSwapState = iota QGasPledgePending QGasPledgeDone // withdraw QGasWithDrawInit QGasWithDrawPending QGasWithDrawDone QGasInvalid )
func StringToQGasSwapState ¶ added in v1.0.1
func StringToQGasSwapState(t string) QGasSwapState
type QGasSwapType ¶ added in v1.0.1
type QGasSwapType byte
type ChainType byte
const (
ETH ChainType = iota NEO
)
const ( QGasDeposit QGasSwapType = iota QGasWithdraw )
type SwapInfo ¶ added in v1.0.1
type SwapInfo struct { gorm.Model State SwapState `msg:"state" json:"state"` Chain ChainType `msg:"chain" json:"chain"` Amount int64 `msg:"amount" json:"amount"` EthTxHash string `msg:"ethTxHash" json:"ethTxHash"` NeoTxHash string `msg:"neoTxHash" json:"neoTxHash"` EthUserAddr string `msg:"ethUserAddr" json:"ethUserAddr"` NeoUserAddr string `msg:"neoUserAddr" json:"neoUserAddr"` StartTime int64 `msg:"startTime" json:"startTime"` LastModifyTime int64 `msg:"lastModifyTime" json:"lastModifyTime"` }
type SwapPending ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.