expose

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigPath = "./config.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Chains []RawChainConfig `json:"chains"`
	Other  Construction     `json:"other,omitempty"`
}

func Local

func Local(ctx *cli.Context) (*Config, error)

type Construction

type Construction struct {
	MonitorUrl string `json:"monitor_url,omitempty"`
	Env        string `json:"env,omitempty"`
	Port       string `json:"port,omitempty"`
	Butter     string `json:"butter,omitempty"`
	Key        string `json:"key,omitempty"`
}

type RawChainConfig

type RawChainConfig struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	Id         string `json:"id"`       // ChainID
	Endpoint   string `json:"endpoint"` // url for rpc endpoint
	Mcs        string `json:"mcs,omitempty"`
	OracleNode string `json:"oracleNode,omitempty"`
	LightNode  string `json:"lightNode,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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