migrationdaemon

package
v0.0.0-...-5de87d6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CONVERSION = "10"

Variables

This section is empty.

Functions

func INSMETHOD_DepositMigrationCall

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

func INSMETHOD_GetActivationStatus

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

func INSMETHOD_GetCode

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

func INSMETHOD_GetMigrationDaemonMember

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

func INSMETHOD_GetPrototype

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

func INSMETHOD_SetActivationStatus

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

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() insolar.ContractWrapper

Types

type DepositMigrationResult

type DepositMigrationResult struct {
	Reference string `json:"memberReference"`
}

DepositMigrationResult struct for return reference from contract.

type MigrationDaemon

type MigrationDaemon struct {
	foundation.BaseContract
	IsActive              bool
	MigrationDaemonMember insolar.Reference
}

MigrationDaemon make migration procedure.

func (*MigrationDaemon) DepositMigrationCall

func (md *MigrationDaemon) DepositMigrationCall(
	params map[string]interface{}, caller insolar.Reference, request insolar.Reference,
) (*DepositMigrationResult, error)

DepositMigrationCall internal function migration admin from api.

func (*MigrationDaemon) GetActivationStatus

func (md *MigrationDaemon) GetActivationStatus() (bool, error)

Return status migration daemon. ins:immutable

func (*MigrationDaemon) GetMigrationDaemonMember

func (md *MigrationDaemon) GetMigrationDaemonMember() (insolar.Reference, error)

Return reference on migration daemon. ins:immutable

func (*MigrationDaemon) SetActivationStatus

func (md *MigrationDaemon) SetActivationStatus(status bool) error

Set status Migration daemon.

Jump to

Keyboard shortcuts

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