Documentation
¶
Index ¶
- type ContractService
- func (cs *ContractService) GetAccount() *types.Account
- func (cs *ContractService) GetChangeOrderBlock(param *proto.ChangeOrderParam) (string, error)
- func (cs *ContractService) GetCreateOrderBlock(param *proto.CreateOrderParam) (string, error)
- func (cs *ContractService) GetFakeMode() bool
- func (cs *ContractService) GetOrchestra() *orchestra.Orchestra
- func (cs *ContractService) GetOrderInfoByInternalId(id string) (*qlcSdk.DoDSettleOrderInfo, error)
- func (cs *ContractService) GetOrderInfoBySellerAndOrderId(seller types.Address, orderId string) (*qlcSdk.DoDSettleOrderInfo, error)
- func (cs *ContractService) GetTerminateOrderBlock(param *proto.TerminateOrderParam) (string, error)
- func (cs *ContractService) Init() error
- func (cs *ContractService) SetAccount(account *types.Account)
- func (cs *ContractService) SetFakeMode(mode bool)
- func (cs *ContractService) Start() error
- func (cs *ContractService) Stop() error
- type OrderList
- type ProcessingOrderList
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractService ¶
type ContractService struct {
// contains filtered or unexported fields
}
func NewContractService ¶
func NewContractService(cfgFile string) (*ContractService, error)
func (*ContractService) GetAccount ¶
func (cs *ContractService) GetAccount() *types.Account
func (*ContractService) GetChangeOrderBlock ¶
func (cs *ContractService) GetChangeOrderBlock(param *proto.ChangeOrderParam) (string, error)
func (*ContractService) GetCreateOrderBlock ¶
func (cs *ContractService) GetCreateOrderBlock(param *proto.CreateOrderParam) (string, error)
func (*ContractService) GetFakeMode ¶
func (cs *ContractService) GetFakeMode() bool
func (*ContractService) GetOrchestra ¶
func (cs *ContractService) GetOrchestra() *orchestra.Orchestra
func (*ContractService) GetOrderInfoByInternalId ¶
func (cs *ContractService) GetOrderInfoByInternalId(id string) (*qlcSdk.DoDSettleOrderInfo, error)
func (*ContractService) GetOrderInfoBySellerAndOrderId ¶
func (cs *ContractService) GetOrderInfoBySellerAndOrderId(seller types.Address, orderId string) (*qlcSdk.DoDSettleOrderInfo, error)
func (*ContractService) GetTerminateOrderBlock ¶
func (cs *ContractService) GetTerminateOrderBlock(param *proto.TerminateOrderParam) (string, error)
func (*ContractService) Init ¶
func (cs *ContractService) Init() error
func (*ContractService) SetAccount ¶
func (cs *ContractService) SetAccount(account *types.Account)
func (*ContractService) SetFakeMode ¶
func (cs *ContractService) SetFakeMode(mode bool)
func (*ContractService) Start ¶
func (cs *ContractService) Start() error
func (*ContractService) Stop ¶
func (cs *ContractService) Stop() error
type ProcessingOrderList ¶
type ProcessingOrderList struct {
Processing []*OrderList `json:"processing"`
}
Click to show internal directories.
Click to hide internal directories.