Defines implementation for managing platforms creation and tracking system's platforms. Some methods could require to pay additional fee in TIMEs during their invocation.
/contracts/helpers/legacy/PlatformsManagerDammyDeprecated.sol

constructor

PlatformsManagerDammyDeprecated

inputs0address_store
inputs1bytes32_crate
event

Error 9cf38cf2

inputs0addressself
inputs1uint256errorCode
event

PlatformAttached cdc5b8b2

inputs0addressself
inputs1addressplatform
inputs2addressby
event

PlatformDetached 91fa8213

inputs0addressself
inputs1addressplatform
inputs2addressby
event

PlatformRequested 675ebf44

inputs0addressself
inputs1addressplatform
inputs2addresstokenExtension
inputs3addressby
function

attachPlatform 19e77baf

Responsible for registering an existed platform in the system. Could be performed only by owner of passed platform. It also reset platform's event history to system's one, so an owner should install PlatformsManager as eventsAdmin in its platform contract. * Attaching a new platform also leads to synchronyzing all assets hosted in a platform and their owners so it is possible in case when a platform has a lot of assets and managers that this process of registering a platform will end up with ERROR_PLATFORMS_REPEAT_SYNC_IS_NOT_COMPLETED error. It means that all goes right just keep calling this method until OK result code will be returned; synchronysation might take several attemtps before it will be finished.

inputs0address_platform

platform address

outputs0uint256resultCode

result code of an operation. ERROR_PLATFORMS_ATTACHING_PLATFORM_ALREADY_EXISTS, ERROR_PLATFORMS_CANNOT_UPDATE_EVENTS_HISTORY_NOT_EVENTS_ADMIN, ERROR_PLATFORMS_REPEAT_SYNC_IS_NOT_COMPLETED might be returned.

function

changeContractOwnership 557f4bc9

Prepares ownership pass. * Can only be called by current owner.

inputs0address_to

address of the next owner. 0x0 is not allowed.

outputs0bool
function

claimContractOwnership 4592cd1d

Finalize ownership pass. * Can only be called by pending owner.

outputs0bool
function, constant

contractOwner ce606ee0

function, constant

contractsManager 53253d31

function

createPlatform 8c1ae7f5

Creates a brand new platform. This method might take an additional fee in TIMEs.

outputs0uint256resultCode

result code of an operation

function

destroy 83197ef0

function

detachPlatform 73583f98

Responsible for removing a platform from the system. Could be performed only by owner of passed platform. It also reset platform's eventsHistory and set platform as a new eventsHistory; still PlatformsManager should be eventsAdmin in a platform. * Detaching process also includes removal of all assets and managers from system's registry, so as an opposite to a synchronization during attaching this process clean up all records about assets and their owners. It could take several attempts until all data will be removed. ERROR_PLATFORMS_REPEAT_SYNC_IS_NOT_COMPLETED will be returned in case if clean up process is not going to finish during this iteration so keep calling until OK will be a result.

inputs0address_platform

platform address

outputs0uint256resultCode

result code of an operation. ERROR_PLATFORMS_PLATFORM_DOES_NOT_EXIST, ERROR_PLATFORMS_CANNOT_UPDATE_EVENTS_HISTORY_NOT_EVENTS_ADMIN, ERROR_PLATFORMS_REPEAT_SYNC_IS_NOT_COMPLETED might be returned.

function

emitError df26ca08

inputs0uint256_errorCode
function

emitPlatformAttached 4ddeb7d5

inputs0address_platform
inputs1address_by
function

emitPlatformDetached 237932cf

inputs0address_platform
inputs1address_by
function

emitPlatformRequested 47ab61b4

inputs0address_platform
inputs1address_tokenExtension
inputs2address_by
function, constant

getEventsHistory fff10aba

function

init f09a4016

inputs0address_contractsManager
inputs1address_platformsFactory
function, constant

isAuthorized fe9fbb80

inputs0addresskey
function, constant

isPlatformAttached c7eff32e

Checks if passed platform is presented in the system

inputs0address_platform

platform address

outputs0bool
function, constant

lookupManager 4fe59012

Will crash if no manager in the system with given identifier.

Returns manager's address by its identifier (type).

inputs0bytes32_identifier

is a manager's identifier. 0x0 is not allowed.

function, constant

pendingContractOwner 5aa77d3c

function

setContractsManager 71d3b573

Setter for ContractsManager. Force overrides currect manager.

inputs0address_contractsManager

contracts manager. 0x0 is not allowed.

function

setEventsHistory 6521afd7

inputs0address_eventsHistory
function

transferContractOwnership a843c51f

Direct ownership pass without change/claim pattern. Can be invoked only by current contract owner

inputs0address_to

the next contract owner

outputs0bool
function

withdrawnTokens d8f9659b

inputs0address[]tokens
inputs1address_to