2020-10-28 17:35:56 +00:00
|
|
|
package store
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
|
|
|
|
"github.com/Secured-Finance/dione/node"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Store struct {
|
|
|
|
db *sql.DB
|
|
|
|
node *node.Node
|
|
|
|
genesisTs uint64
|
|
|
|
// genesisTask *types.DioneTask
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewStore(db *sql.DB, node *node.Node, genesisTs uint64) *Store {
|
|
|
|
return &Store{
|
|
|
|
db: db,
|
|
|
|
node: node,
|
|
|
|
genesisTs: genesisTs,
|
|
|
|
}
|
|
|
|
}
|
2020-10-30 05:23:08 +00:00
|
|
|
|
|
|
|
// TODO: connect data base; specify the table for stake storage; queries for stake storage
|