OSDN Git Service

Dex database logic implementation (#404)
[bytom/vapor.git] / application / dex / common / type.go
diff --git a/application/dex/common/type.go b/application/dex/common/type.go
deleted file mode 100644 (file)
index 63baf2b..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-package common
-
-import "github.com/vapor/protocol/bc"
-
-type DexUtxo struct {
-       SourceID       *bc.Hash
-       SourcePos      uint64
-       Amount         uint64
-       ControlProgram []byte
-}
-
-type Order struct {
-       FromAssetID *bc.AssetID
-       ToAssetID   *bc.AssetID
-       Utxo        *DexUtxo
-       Rate        float64
-}
-
-type TradePair struct {
-       FromAssetID *bc.AssetID
-       ToAssetID   *bc.AssetID
-       Count       uint64
-}
-
-type DexDatabaseState struct {
-       Height uint64
-       Hash   *bc.Hash
-}