config

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeConfig added in v0.19.0

type FeeConfig struct {
	// contains filtered or unexported fields
}

FeeConfig is an instance that returns extra fee values for contract invocations without notary support.

func NewFeeConfig added in v0.19.0

func NewFeeConfig(v *viper.Viper) *FeeConfig

func (FeeConfig) MainChainFee added in v0.19.0

func (f FeeConfig) MainChainFee() fixedn.Fixed8

func (FeeConfig) SideChainFee added in v0.19.0

func (f FeeConfig) SideChainFee() fixedn.Fixed8

type GlobalConfig

type GlobalConfig struct {
	// contains filtered or unexported fields
}

func NewGlobalConfigReader

func NewGlobalConfigReader(cfg *viper.Viper, nm *netmapClient.Wrapper) *GlobalConfig

func (*GlobalConfig) AuditFee added in v0.19.0

func (c *GlobalConfig) AuditFee() (uint64, error)

func (*GlobalConfig) BasicIncomeRate

func (c *GlobalConfig) BasicIncomeRate() (uint64, error)

func (*GlobalConfig) EpochDuration added in v0.19.0

func (c *GlobalConfig) EpochDuration() (uint32, error)

Jump to

Keyboard shortcuts

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