migrationadmin

package
v0.9.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusActive     = "active"
	StatusInactivate = "inactive"
)

Variables

This section is empty.

Functions

func INSMETHOD_ActivateDaemon

func INSMETHOD_ActivateDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_CheckDaemon

func INSMETHOD_CheckDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_DeactivateDaemon

func INSMETHOD_DeactivateDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetActiveDaemons

func INSMETHOD_GetActiveDaemons(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetAllMigrationDaemon

func INSMETHOD_GetAllMigrationDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetDepositParameters

func INSMETHOD_GetDepositParameters(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_MigrationAdminCall

func INSMETHOD_MigrationAdminCall(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type CheckDaemonResponse

type CheckDaemonResponse struct {
	Status string `json:"status"`
}

type MigrationAdmin

type MigrationAdmin struct {
	foundation.BaseContract
	MigrationDaemons     foundation.StableMap
	MigrationAdminMember insolar.Reference
	Lokup                int64
	Vesting              int64
}

MigrationAdmin manage and change status for migration daemon.

func (*MigrationAdmin) ActivateDaemon

func (mA *MigrationAdmin) ActivateDaemon(daemonMember string, caller insolar.Reference) error

Activate migration daemon.

func (*MigrationAdmin) CheckDaemon

func (mA *MigrationAdmin) CheckDaemon(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

func (MigrationAdmin) GetDepositParameters

func (mA MigrationAdmin) GetDepositParameters() (int64, int64, error)

func (*MigrationAdmin) MigrationAdminCall

func (mA *MigrationAdmin) MigrationAdminCall(params map[string]interface{}, nameMethod string, caller insolar.Reference) (interface{}, error)

Jump to

Keyboard shortcuts

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