Documentation ¶
Index ¶
- type FilledOrder
- type RdsService
- type RdsServiceImpl
- func (s *RdsServiceImpl) GetFilledOrderByRinghash(ringhash common.Hash) ([]*FilledOrder, error)
- func (s *RdsServiceImpl) GetRingForSubmitByHash(ringhash common.Hash) (ringForSubmit RingSubmitInfo, err error)
- func (s *RdsServiceImpl) GetRingHashesByTxHash(txHash common.Hash) ([]*RingSubmitInfo, error)
- func (s *RdsServiceImpl) UpdateRingSubmitInfoErrById(id int, err error) error
- func (s *RdsServiceImpl) UpdateRingSubmitInfoResult(submitResult *types.RingSubmitResultEvent) error
- func (s *RdsServiceImpl) UpdateRingSubmitInfoSubmitUsedGas(txHash string, usedGas *big.Int) error
- type RingSubmitInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilledOrder ¶
type FilledOrder struct { ID int `gorm:"column:id;primary_key;"` RingHash string `gorm:"column:ringhash;type:varchar(82)"` OrderHash string `gorm:"column:orderhash;type:varchar(82)"` FeeSelection uint8 `gorm:"column:fee_selection" json:"feeSelection"` RateAmountS string `gorm:"column:rate_amount_s;type:text" json:"rateAmountS"` AvailableAmountS string `gorm:"column:available_amount_s;type:text"json:"availableAmountS"` AvailableAmountB string `gorm:"column:available_amount_b;type:text"` FillAmountS string `gorm:"column:fill_amount_s;type:text" json:"fillAmountS"` FillAmountB string `gorm:"column:fill_amount_b;type:text" json:"fillAmountB"` LrcReward string `gorm:"column:lrc_reward;type:text" json:"lrcReward"` LrcFee string `gorm:"column:lrc_fee;type:text" json:"lrcFee"` FeeS string `gorm:"column:fee_s;type:text" json:"feeS"` LegalFee string `gorm:"column:legal_fee;type:text" json:"legalFee"` SPrice string `gorm:"column:s_price;type:text" json:"sPrice"` BPrice string `gorm:"column:b_price;type:text" json:"sPrice"` }
func (*FilledOrder) ConvertDown ¶
func (daoFilledOrder *FilledOrder) ConvertDown(filledOrder *types.FilledOrder, ringhash common.Hash) error
func (*FilledOrder) ConvertUp ¶
func (daoFilledOrder *FilledOrder) ConvertUp(filledOrder *types.FilledOrder, rds RdsService) error
type RdsService ¶
type RdsService interface { UpdateRingSubmitInfoResult(submitResult *types.RingSubmitResultEvent) error GetRingForSubmitByHash(ringhash common.Hash) (RingSubmitInfo, error) GetRingHashesByTxHash(txHash common.Hash) ([]*RingSubmitInfo, error) //GetRingminedMethods(lastId int, limit int) ([]types.RingMinedEvent, error) GetFilledOrderByRinghash(ringhash common.Hash) ([]*FilledOrder, error) UpdateRingSubmitInfoErrById(id int, err error) error }
type RdsServiceImpl ¶
type RdsServiceImpl struct {
dao.RdsServiceImpl
}
func NewRdsService ¶
func NewRdsService(options *dao.MysqlOptions) RdsServiceImpl
func (*RdsServiceImpl) GetFilledOrderByRinghash ¶
func (s *RdsServiceImpl) GetFilledOrderByRinghash(ringhash common.Hash) ([]*FilledOrder, error)
func (*RdsServiceImpl) GetRingForSubmitByHash ¶
func (s *RdsServiceImpl) GetRingForSubmitByHash(ringhash common.Hash) (ringForSubmit RingSubmitInfo, err error)
func (*RdsServiceImpl) GetRingHashesByTxHash ¶
func (s *RdsServiceImpl) GetRingHashesByTxHash(txHash common.Hash) ([]*RingSubmitInfo, error)
func (*RdsServiceImpl) UpdateRingSubmitInfoErrById ¶
func (s *RdsServiceImpl) UpdateRingSubmitInfoErrById(id int, err error) error
func (*RdsServiceImpl) UpdateRingSubmitInfoResult ¶
func (s *RdsServiceImpl) UpdateRingSubmitInfoResult(submitResult *types.RingSubmitResultEvent) error
func (*RdsServiceImpl) UpdateRingSubmitInfoSubmitUsedGas ¶
func (s *RdsServiceImpl) UpdateRingSubmitInfoSubmitUsedGas(txHash string, usedGas *big.Int) error
type RingSubmitInfo ¶
type RingSubmitInfo struct { ID int `gorm:"column:id;primary_key;"` RingHash string `gorm:"column:ringhash;type:varchar(82)"` UniqueId string `gorm:"column:unique_id;type:varchar(82)"` ProtocolAddress string `gorm:"column:protocol_address;type:varchar(42)"` OrdersCount int64 `gorm:"column:order_count;type:bigint"` ProtocolData string `gorm:"column:protocol_data;type:text"` ProtocolGas string `gorm:"column:protocol_gas;type:varchar(50)"` ProtocolGasPrice string `gorm:"column:protocol_gas_price;type:varchar(50)"` ProtocolUsedGas string `gorm:"column:protocol_used_gas;type:varchar(50)"` ProtocolTxHash string `gorm:"column:protocol_tx_hash;type:varchar(82)"` Status int `gorm:"column:status;type:int"` RingIndex string `gorm:"column:ring_index;type:varchar(50)"` BlockNumber string `gorm:"column:block_number;type:varchar(50)"` Miner string `gorm:"column:miner;type:varchar(42)"` Err string `gorm:"column:err;type:text"` CreateTime time.Time `gorm:"column:create_time;type:TIMESTAMP;default:CURRENT_TIMESTAMP"` }
func (*RingSubmitInfo) ConvertDown ¶
func (info *RingSubmitInfo) ConvertDown(typesInfo *types.RingSubmitInfo, err error) error
func (*RingSubmitInfo) ConvertUp ¶
func (info *RingSubmitInfo) ConvertUp(typesInfo *types.RingSubmitInfo) error
Click to show internal directories.
Click to hide internal directories.