cfg

package
v0.0.0-...-791c31d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainCfg

func GetChainCfg(name string) (*config.ConfigData, []string)

GetChainCfg get chain cfg

func GetChainTyp

func GetChainTyp(name string) types.ClientType

GetChainTyp get chain cfg type

func LoadCfgs

func LoadCfgs(path string) error

LoadCfgs load cfg for force-relay

Types

type RelayCfg

type RelayCfg struct {
	Chain         string `json:"chain"`
	RelayContract string `json:"relaycontract"`
}

RelayCfg cfg for relay

func GetRelayCfg

func GetRelayCfg() RelayCfg

GetRelayCfg get cfg for relay

type Relayer

type Relayer struct {
	SideAccount  types.PermissionLevel
	RelayAccount types.PermissionLevel
}

Relayer transfer, watcher and checker

func GetTransfers

func GetTransfers() []Relayer

GetTransfers get transfers

func GetWatchers

func GetWatchers() []Relayer

GetWatchers get watchers

Jump to

Keyboard shortcuts

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