config

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

func New

func New(getter kv.Getter) Config

type Level

type Level struct {
	Level     int  `fig:"lvl,required"`
	Threshold int  `fig:"threshold,required"`
	Referrals int  `fig:"referrals"`
	Infinity  bool `fig:"infinity"`
}

type Levels

type Levels struct {
	Downgradeable bool
	// contains filtered or unexported fields
}

func (*Levels) LvlChange added in v1.3.0

func (l *Levels) LvlChange(currentLevel int, totalAmount int64) (refCoundToAdd *int, newLevel int)

LvlUp Calculates new lvl. New lvl always greater then current level

func (Levels) MinLvl

func (l Levels) MinLvl() int

type Verifiers added in v1.3.0

type Verifiers struct {
	Passport *zk.Verifier
	Poll     *zk.Verifier
	PollRoot *root.ProposalSMTVerifier
}

Jump to

Keyboard shortcuts

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