migrationadmin

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func INSMETHOD_AddNewMigrationAddressToMaps

func INSMETHOD_AddNewMigrationAddressToMaps(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_GetMigrationDaemonByMemberRef added in v0.9.1

func INSMETHOD_GetMigrationDaemonByMemberRef(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

	MigrationAdminMember   insolar.Reference
	MigrationAddressShards []insolar.Reference
	VestingParams          *VestingParams
}

MigrationAdmin manage and change status for migration daemon.

func (*MigrationAdmin) AddNewMigrationAddressToMaps

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

AddNewMemberToMaps adds new member to MigrationAddressMap.

func (*MigrationAdmin) GetDepositParameters

func (mA *MigrationAdmin) GetDepositParameters() (*VestingParams, error)

func (*MigrationAdmin) GetFreeMigrationAddress

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

GetFreeMigrationAddress return free migration address for new user. 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) GetMigrationDaemonByMemberRef added in v0.9.1

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

GetMigrationDaemonByMemberRef get migration daemon contract with reference on MigrationDaemonMember. ins:immutable

func (*MigrationAdmin) MigrationAdminCall

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

Call internal function migration admin from api.

type VestingParams

type VestingParams struct {
	Lockup      int64 `json:"lockupInPulses"`
	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