config

package
v0.0.0-...-d9f2ef2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitUser

func InitUser(privkeystore string, password string) (auth *bind.TransactOpts, userkey *keystore.Key, err error)

func ReadString

func ReadString(path string) (contents string)

Takes path to a JSON and returns a string of the contents

Types

type Account

type Account struct {
	Auth *bind.TransactOpts
	Key  *keystore.Key
}

type Setup

type Setup struct {
	AddrTo       string `json:"rpc-to"`
	AccountTo    string `json:"account-to"`
	PasswordTo   string `json:"password-to"`
	KeystoreTo   string `json:"keystore-to"`
	AddrFrom     string `json:"rpc-from"`
	AccountFrom  string `json:"account-from"`
	PasswordFrom string `json:"password-from"`
	KeystoreFrom string `json:"keystore-from"`
	ChainId      string `json:"validation-chainid"`
	Validation   string `json:"validation-addr"`
	Ion          string `json:"ion-addr"`
	Trigger      string `json:"trigger-addr"`
	Function     string `json:"function-addr"`
}

Settings

func ReadSetup

func ReadSetup(config string) (Setup, error)

Takes path to a JSON and returns a struct of the contents

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL