Documentation ¶
Index ¶
- Constants
- func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)
- func INSMETHOD_ActivateDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_CheckActiveDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_DeactivateDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetActiveDaemons(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetAllMigrationDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() XXX_insolar.ContractWrapper
- type MigrationAdmin
- func (mA MigrationAdmin) ActivateDaemon(daemonMember string, caller insolar.Reference) error
- func (mA MigrationAdmin) CheckActiveDaemon(daemonMember string) (bool, error)
- func (mA MigrationAdmin) DeactivateDaemon(daemonMember string, caller insolar.Reference) error
- func (mA MigrationAdmin) GetActiveDaemons() ([]string, error)
- func (mA MigrationAdmin) GetAllMigrationDaemon() (foundation.StableMap, error)
Constants ¶
View Source
const ( StatusActive = "ACTIVE" StatusInactivate = "INACTIVE" )
Variables ¶
This section is empty.
Functions ¶
func INSMETHOD_GetPrototype ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() XXX_insolar.ContractWrapper
Types ¶
type MigrationAdmin ¶
type MigrationAdmin struct { foundation.BaseContract MigrationDaemon foundation.StableMap MigrationAdminMember insolar.Reference }
MigrationAdmin manage and change status for migration daemon.
func New ¶
func New(migrationDaemons [insolar.GenesisAmountMigrationDaemonMembers]insolar.Reference, migrationAdminMember insolar.Reference) (*MigrationAdmin, error)
Create new Migration admin in genesis.
func (MigrationAdmin) ActivateDaemon ¶
func (mA MigrationAdmin) ActivateDaemon(daemonMember string, caller insolar.Reference) error
Activate migration daemon.
func (MigrationAdmin) CheckActiveDaemon ¶
func (mA MigrationAdmin) CheckActiveDaemon(daemonMember string) (bool, error)
Check this member is migration daemon or mot. ins:immutable
func (MigrationAdmin) DeactivateDaemon ¶
func (mA MigrationAdmin) DeactivateDaemon(daemonMember string, caller insolar.Reference) error
Deactivate migration daemon.
func (MigrationAdmin) GetActiveDaemons ¶
func (mA MigrationAdmin) GetActiveDaemons() ([]string, error)
Return only active daemons. ins:immutable
func (MigrationAdmin) GetAllMigrationDaemon ¶
func (mA MigrationAdmin) GetAllMigrationDaemon() (foundation.StableMap, error)
Return stable map migration daemon. ins:immutable
Click to show internal directories.
Click to hide internal directories.