Documentation ¶
Index ¶
- Constants
- func INSMETHOD_ActivateDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_AddNewMigrationAddressToMaps(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_CheckDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_DeactivateDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetActiveDaemons(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetAllMigrationDaemon(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetDepositParameters(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetFreeMigrationAddress(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetMemberByMigrationAddress(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_MigrationAdminCall(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() XXX_insolar.ContractWrapper
- type CheckDaemonResponse
- type MigrationAdmin
- func (mA *MigrationAdmin) ActivateDaemon(daemonMember string, caller insolar.Reference) error
- func (mA *MigrationAdmin) AddNewMigrationAddressToMaps(migrationAddress string, memberRef insolar.Reference) error
- func (mA *MigrationAdmin) CheckDaemon(daemonMember string) (bool, error)
- func (mA *MigrationAdmin) DeactivateDaemon(daemonMember string, caller insolar.Reference) error
- func (mA *MigrationAdmin) GetActiveDaemons() ([]string, error)
- func (mA *MigrationAdmin) GetAllMigrationDaemon() (foundation.StableMap, error)
- func (mA *MigrationAdmin) GetDepositParameters() (*VestingParams, error)
- func (mA *MigrationAdmin) GetFreeMigrationAddress(publicKey string) (string, error)
- func (mA *MigrationAdmin) GetMemberByMigrationAddress(migrationAddress string) (*insolar.Reference, error)
- func (mA *MigrationAdmin) MigrationAdminCall(params map[string]interface{}, nameMethod string, caller insolar.Reference) (interface{}, error)
- type VestingParams
Constants ¶
View Source
const ( StatusActive = "active" StatusInactivate = "inactive" )
Variables ¶
This section is empty.
Functions ¶
func INSMETHOD_CheckDaemon ¶
func INSMETHOD_GetPrototype ¶
func INS_META_INFO ¶
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 ¶
type VestingParams ¶
Click to show internal directories.
Click to hide internal directories.