Documentation ¶
Index ¶
- Constants
- func INSMETHOD_AddNewMigrationAddressToMaps(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetDepositParameters(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetFreeMigrationAddress(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetMemberByMigrationAddress(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetMigrationDaemonByMemberRef(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_MigrationAdminCall(object []byte, data []byte) (newState []byte, result []byte, err error)
- func INS_META_INFO() []map[string]string
- func Initialize() insolar.ContractWrapper
- type AddMaResponse
- type CheckDaemonResponse
- type GetAddressCountResponse
- type MigrationAdmin
- func (mA *MigrationAdmin) AddNewMigrationAddressToMaps(migrationAddress string, memberRef insolar.Reference) 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) GetMigrationDaemonByMemberRef(memberRef 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" )
View Source
const PanicIsLogicalError = false
Variables ¶
This section is empty.
Functions ¶
func INSMETHOD_GetPrototype ¶
func INS_META_INFO ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.