Documentation
¶
Index ¶
- Variables
- type Admin
- func (p *Admin) AdminAddress(loader types.Loader, name string) common.Address
- func (p *Admin) AfterExecuteTransactions(b *types.Block, ctw *types.ContextWrapper) error
- func (p *Admin) BeforeExecuteTransactions(ctw *types.ContextWrapper) error
- func (p *Admin) ID() uint8
- func (p *Admin) Init(reg *types.Register, pm types.ProcessManager, cn types.Provider) error
- func (p *Admin) InitAdmin(ctw *types.ContextWrapper, addrMap map[string]common.Address) error
- func (p *Admin) Name() string
- func (p *Admin) OnLoadChain(loader types.LoaderWrapper) error
- func (p *Admin) OnSaveData(b *types.Block, ctw *types.ContextWrapper) error
- func (p *Admin) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAdminAddress = errors.New("invalid admin address") ErrNotExistAdminAddress = errors.New("not exist admin address") )
errors
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { *types.ProcessBase // contains filtered or unexported fields }
Admin manages balance of accounts of the chain
func (*Admin) AdminAddress ¶
AdminAddress returns the admin address
func (*Admin) AfterExecuteTransactions ¶
AfterExecuteTransactions called after processes transactions of the block
func (*Admin) BeforeExecuteTransactions ¶
func (p *Admin) BeforeExecuteTransactions(ctw *types.ContextWrapper) error
BeforeExecuteTransactions called before processes transactions of the block
func (*Admin) OnLoadChain ¶
func (p *Admin) OnLoadChain(loader types.LoaderWrapper) error
OnLoadChain called when the chain loaded
func (*Admin) OnSaveData ¶
OnSaveData called when the context of the block saved
Click to show internal directories.
Click to hide internal directories.