config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnsupportedChain = "Unsupport chain"
View Source
const UnsupportedOperation = UnsupportedChain

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     Server     `yaml:"server"`
	WalletNode WalletNode `yaml:"wallet_node"`
	NetWork    string     `yaml:"network"`
	Chains     []string   `yaml:"chains"`
}

func New

func New(path string) (*Config, error)

type Node

type Node struct {
	RpcUrl       string `yaml:"rpc_url"`
	RpcUser      string `yaml:"rpc_user"`
	RpcPass      string `yaml:"rpc_pass"`
	DataApiUrl   string `yaml:"data_api_url"`
	DataApiKey   string `yaml:"data_api_key"`
	DataApiToken string `yaml:"data_api_token"`
	TimeOut      uint64 `yaml:"time_out"`
}

type Server

type Server struct {
	Port string `yaml:"port"`
}

type WalletNode

type WalletNode struct {
	Eth     Node `yaml:"eth"`
	Arbi    Node `yaml:"arbi"`
	Op      Node `yaml:"op"`
	Zksync  Node `yaml:"zksync"`
	Bsc     Node `yaml:"bsc"`
	Heco    Node `yaml:"heco"`
	Avax    Node `yaml:"avax"`
	Polygon Node `yaml:"polygon"`
	Tron    Node `yaml:"tron"`
	Sol     Node `yaml:"solana"`
	Cosmos  Node `yaml:"cosmos"`
	Aptos   Node `yaml:"aptos"`
	Mantle  Node `yaml:"mantle"`
	Scroll  Node `yaml:"scroll"`
	Base    Node `yaml:"base"`
	Linea   Node `yaml:"linea"`
	Sui     Node `yaml:"sui"`
	Ton     Node `yaml:"ton"`
}

Jump to

Keyboard shortcuts

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