wrapper

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage wraps the dynamics.StorageGetter interface to make it easier to interact within application logic.

func NewStorage

func NewStorage(storageInter dynamics.StorageGetter) *Storage

NewStorage creates a new storage struct which wraps the StorageGetter interface.

func (*Storage) GetDataStoreFee added in v0.0.8

func (s *Storage) GetDataStoreFee() (*uint256.Uint256, error)

GetDataStoreFee returns the per-epoch fee of DataStore

func (*Storage) GetMaxBlockSize added in v0.0.8

func (s *Storage) GetMaxBlockSize() (uint32, error)

GetMaxBlockSize returns MaxBytes

func (*Storage) GetMinScaledTransactionFee added in v0.0.8

func (s *Storage) GetMinScaledTransactionFee() (*uint256.Uint256, error)

GetMinScaledTransactionFee returns the minimum TxFee.

func (*Storage) GetValueStoreFee

func (s *Storage) GetValueStoreFee() (*uint256.Uint256, error)

GetValueStoreFee returns the fee of ValueStore.

Jump to

Keyboard shortcuts

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