Documentation ¶
Index ¶
- func GetExecSymbol(order *pt.SellOrder) (string, string)
- func GetName() string
- func Init(name string, cfg *types.Chain33Config, sub []byte)
- func InitExecType()
- func NewOrderTable(kvdb dbm.KV) *table.Table
- func NewOrderTableV2(kvdb dbm.KV) *table.Table
- func UpgradeLocalDBPart1(localDB dbm.KVDB) ([]*types.KeyValue, error)
- func UpgradeLocalDBPart2(kvdb dbm.KVDB, coinExec, coinSymbol string) ([]*types.KeyValue, error)
- func UpgradeLocalDBV2(localDB dbm.KVDB, coinExec, coinSymbol string) (*types.LocalDBSet, error)
- type OrderRow
- type OrderV2Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExecSymbol ¶
GetExecSymbol : return exec, symbol
func NewOrderTableV2 ¶
NewOrderTableV2 create order table
func UpgradeLocalDBPart1 ¶
UpgradeLocalDBPart1 手动生成KV,需要在原有数据库中删除
func UpgradeLocalDBPart2 ¶
UpgradeLocalDBPart2 升级order order 从 v1 升级到 v2 通过tableV1 删除, 通过tableV2 添加, 无需通过每个区块扫描对应的交易
func UpgradeLocalDBV2 ¶
UpgradeLocalDBV2 trade 本地数据库升级 from 1 to 2
Types ¶
type OrderV2Row ¶
type OrderV2Row struct {
*pty.LocalOrder
}
OrderV2Row order row
func (*OrderV2Row) SetPayload ¶
func (r *OrderV2Row) SetPayload(data types.Message) error
SetPayload set payload
Click to show internal directories.
Click to hide internal directories.