OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
database struct (#401)
[bytom/vapor.git]
/
application
/
dex
/
common
/
type.go
1
package common
2
3
import "github.com/vapor/protocol/bc"
4
5
type DexUtxo struct {
6
SourceID *bc.Hash
7
SourcePos uint64
8
Amount uint64
9
ControlProgram []byte
10
}
11
12
type Order struct {
13
FromAssetID *bc.AssetID
14
ToAssetID *bc.AssetID
15
Utxo *DexUtxo
16
Rate float64
17
}
18
19
type TradePair struct {
20
FromAssetID *bc.AssetID
21
ToAssetID *bc.AssetID
22
Count uint64
23
}
24
25
type DexDatabaseState struct {
26
Height uint64
27
Hash *bc.Hash
28
}