net

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CicNet

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

func NewCicNet

func NewCicNet(rpcProvider *provider.Provider, tokenIndex common.Address) (*CicNet, error)

func (*CicNet) AddressAtIndex

func (c *CicNet) AddressAtIndex(ctx context.Context, index *big.Int) (string, error)

func (*CicNet) ApplyDemurrageLimited

func (c *CicNet) ApplyDemurrageLimited(ctx context.Context, rounds int64, txData provider.WriteTx) (common.Hash, error)

func (*CicNet) BalanceOf

func (c *CicNet) BalanceOf(ctx context.Context, tokenAddress common.Address, accountAddress common.Address) (big.Int, error)

func (*CicNet) BaseBalanceOf

func (c *CicNet) BaseBalanceOf(ctx context.Context, tokenAddress common.Address, accountAddress common.Address) (big.Int, error)

func (*CicNet) ChangePeriod

func (c *CicNet) ChangePeriod(ctx context.Context, txData provider.WriteTx) (common.Hash, error)

func (*CicNet) DemurrageTokenInfo

func (c *CicNet) DemurrageTokenInfo(ctx context.Context, tokenAddress common.Address) (DemurrageTokenInfo, error)

func (*CicNet) ERC20TokenInfo

func (c *CicNet) ERC20TokenInfo(ctx context.Context, tokenAddress common.Address) (ERC20Token, error)

func (*CicNet) EntryCount

func (c *CicNet) EntryCount(ctx context.Context) (big.Int, error)

func (*CicNet) LastNonce

func (c *CicNet) LastNonce(ctx context.Context, address common.Address) (uint64, error)

type DemurrageTokenInfo

type DemurrageTokenInfo struct {
	DemurrageAmount         big.Int
	DemurrageTimestamp      big.Int
	MinimumParticipantSpend big.Int
	ResolutionFactor        big.Int
	PeriodStart             big.Int
	PeriodDuration          big.Int
	TaxLevel                big.Int
	ActualPeriod            big.Int
	RedistributionCount     big.Int
	IsDemurrageToken        bool
}

type ERC20Token

type ERC20Token struct {
	Name        string
	Symbol      string
	Decimals    big.Int
	TotalSupply big.Int
}

Jump to

Keyboard shortcuts

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