Skip to content

Nacsis/Dominion

Repository files navigation

Dominion app-channel

Requirements

  1. Install ganache-cli
  2. Install GoLang
  3. Run following to install solidity using asdf
    asdf plugin add solidity
    asdf install solidity 0.7.6

Cobra/Viper Setup

  1. install cobra and cobra-cli
    go get -u github.com/spf13/cobra@latest
    go install github.com/spf13/cobra-cli@latest
  2. init cmd structure
    cobra-cli init --viper
    CAUTION: cobra-cli init overrides files (e.g. main.go, cmd/root.go)

Execution

  1. Generate interface for DominionApp on Blockchain
     cd ./contracts && ./generate.sh && cd ..
  2. Start a local blockchain with required acc
    ./ganache-cli.sh
  3. Use a new terminal to start the demo application
    go run main.go demo

interactive playing

...not yet implemented, but will work like this:

  1. Start a local blockchain with required acc
    ./ganache-cli.sh
  2. Use a new terminal to start a cli as alice
    go run main.go play --config alice.yml
  3. Use a new terminal to start a cli as bob
    go run main.go play --config bob.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •