migrationadmin

package
v1.12.4-0...-e320c17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func INSMETHOD_AddNewMigrationAddressToMaps

func INSMETHOD_AddNewMigrationAddressToMaps(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetCode

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

func INSMETHOD_GetDepositParameters

func INSMETHOD_GetDepositParameters(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetFreeMigrationAddress

func INSMETHOD_GetFreeMigrationAddress(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetMemberByMigrationAddress

func INSMETHOD_GetMemberByMigrationAddress(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetMigrationDaemonByMemberRef

func INSMETHOD_GetMigrationDaemonByMemberRef(object []byte, data []byte) (newState []byte, result []byte, err error)

func INSMETHOD_GetPrototype

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

func INSMETHOD_MigrationAdminCall

func INSMETHOD_MigrationAdminCall(object []byte, data []byte) (newState []byte, result []byte, err error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() insolar.ContractWrapper

Types

type AddMaResponse

type AddMaResponse struct {
	Count int `json:"totalNumber"`
}

type CheckDaemonResponse

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

type GetAddressCountResponse

type GetAddressCountResponse struct {
	ShardIndex int `json:"shardIndex"`
	FreeCount  int `json:"freeCount"`
}

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

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)

MigrationAdminCall 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