2017-11-09 19:59:12 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
|
|
|
|
"github.com/8thlight/vulcanizedb/cmd"
|
|
|
|
"github.com/8thlight/vulcanizedb/pkg/core"
|
|
|
|
"github.com/8thlight/vulcanizedb/pkg/repositories"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
environment := flag.String("environment", "", "Environment name")
|
|
|
|
contractHash := flag.String("contract-hash", "", "contract-hash=x1234")
|
|
|
|
flag.Parse()
|
|
|
|
config := cmd.LoadConfig(*environment)
|
|
|
|
repository := repositories.NewPostgres(config.Database)
|
2017-11-13 16:11:27 +00:00
|
|
|
repository.CreateWatchedContract(core.WatchedContract{Hash: *contractHash})
|
2017-11-09 19:59:12 +00:00
|
|
|
}
|