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