migrationadmin

package
v0.9.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 7 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_AddNewMigrationAddressToMaps

func INSMETHOD_AddNewMigrationAddressToMaps(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_GetFreeMigrationAddress

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

func INSMETHOD_GetMemberByMigrationAddress

func INSMETHOD_GetMemberByMigrationAddress(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
	MigrationAddressShards [insolar.GenesisAmountMigrationAddressShards]insolar.Reference
	VestingParams          *VestingParams
}

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) AddNewMigrationAddressToMaps

func (mA *MigrationAdmin) AddNewMigrationAddressToMaps(migrationAddress string, memberRef insolar.Reference) error

AddNewMemberToMaps adds new member to MigrationAddressMap. ins:immutable

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() (*VestingParams, error)

func (*MigrationAdmin) GetFreeMigrationAddress

func (mA *MigrationAdmin) GetFreeMigrationAddress(publicKey string) (string, error)

ins:immutable

func (*MigrationAdmin) GetMemberByMigrationAddress

func (mA *MigrationAdmin) GetMemberByMigrationAddress(migrationAddress string) (*insolar.Reference, error)

GetMemberByMigrationAddress gets member reference by burn address. ins:immutable

func (*MigrationAdmin) MigrationAdminCall

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

type VestingParams

type VestingParams struct {
	Lokup       int64 `json:"lokupInPulses"`
	Vesting     int64 `json:"vestingInPulses"`
	VestingStep int64 `json:"vestingStepInPulses"`
}

Jump to

Keyboard shortcuts

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