morphconfig

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DialTimeoutDefault is a default dial timeout of morph chain client connection.
	DialTimeoutDefault = 5 * time.Second

	// NotaryDepositAmountDefault is a default deposit amount to notary contract.
	NotaryDepositAmountDefault = 5000_0000 // 0.5 Fixed8

	// NotaryDepositDurationDefault is a default deposit duration.
	NotaryDepositDurationDefault uint32 = 1000
)

Variables

This section is empty.

Functions

func DialTimeout

func DialTimeout(c *config.Config) time.Duration

DialTimeout returns value of "dial_timeout" config parameter from "morph" section.

Returns DialTimeoutDefault if value is not positive duration.

func DisableCache added in v0.24.0

func DisableCache(c *config.Config) bool

DisableCache returns value of "disable_cache" config parameter from "morph" section.

func NotificationEndpoint

func NotificationEndpoint(c *config.Config) []string

NotificationEndpoint returns list of values of "notification_endpoint" config parameter from "morph" section.

Throws panic if list is empty.

func RPCEndpoint

func RPCEndpoint(c *config.Config) []string

RPCEndpoint returns list of values of "rpc_endpoint" config parameter from "morph" section.

Throws panic if list is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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