addresslist

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetAdminFunc        = abi.MustNewMethod("function setAdmin(address)")
	SetEnabledFunc      = abi.MustNewMethod("function setEnabled(address)")
	SetNoneFunc         = abi.MustNewMethod("function setNone(address)")
	ReadAddressListFunc = abi.MustNewMethod("function readAddressList(address) returns (uint256)")
)

list of function methods for the address list functionality

Functions

func ApplyGenesisAllocs

func ApplyGenesisAllocs(chain *chain.Genesis, addressListAddr types.Address, config *chain.AddressListConfig)

Types

type AddressList

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

func NewAddressList

func NewAddressList(state stateRef, addr types.Address) *AddressList

func (*AddressList) Addr

func (a *AddressList) Addr() types.Address

func (*AddressList) GetRole

func (a *AddressList) GetRole(addr types.Address) Role

func (*AddressList) Run

func (*AddressList) SetRole

func (a *AddressList) SetRole(addr types.Address, role Role)

type Role

type Role types.Hash
var (
	NoRole      Role = Role(types.StringToHash("0x0000000000000000000000000000000000000000000000000000000000000000"))
	EnabledRole Role = Role(types.StringToHash("0x0000000000000000000000000000000000000000000000000000000000000001"))
	AdminRole   Role = Role(types.StringToHash("0x0000000000000000000000000000000000000000000000000000000000000002"))
)

func (Role) Bytes

func (r Role) Bytes() []byte

func (Role) Enabled

func (r Role) Enabled() bool

func (Role) Uint64

func (r Role) Uint64() uint64

Jump to

Keyboard shortcuts

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