Used as a library by TokenExtensionRouter which provides context and variables (platform, contractsManager) when invoke methods of this contract. Since this contract is designed to be used by delegatecall it doesn't inherit from any contract (except FeatureFeeAdapter) and you should be careful when a need will arise to add more functionality by inheritance, because the contract uses storage scheme from TokenExtensionRouter and it should be preserved. /// It's responsibilities are to: - create assets (with and without fee), - create token crowdsale and remove them. /// Some methods might take a fee by TIME tokens.
/contracts/assets/extensions/PlatformTokenExtensionGatewayManager.sol

constructor

PlatformTokenExtensionGatewayManager

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

createAssetWithFee 58d261f2

Creates asset with fee. Performs asset registration in ERC20Manager. Allowed to be performed only from delegatecall and only by platform owner. Might take an additional fee in TIME tokens

inputs0bytes32_symbol

new asset's symbol

inputs1string_name

asset's name

inputs2string_description

description of an asset

inputs3uint256_value

initial balance to issue

inputs4uint8_decimals

decimals

inputs5bool_isMint

is reissuable

inputs6address_feeAddress

fee wallet address

inputs7uint32_feePercent

fee percent value

inputs8bytes32_tokenImageIpfsHash

asset image IPFS hash

outputs0uint256resultCode

result code of an operation

function

createAssetWithoutFee b3a31ef4

Creates asset without fee. Performs asset registration in ERC20Manager. Allowed to be performed only from delegatecall and only by platform owner. Might take an additional fee in TIME tokens

inputs0bytes32_symbol

new asset's symbol

inputs1string_name

asset's name

inputs2string_description

description of an asset

inputs3uint256_value

initial balance to issue

inputs4uint8_decimals

decimals

inputs5bool_isMint

is reissuable

inputs6bytes32_tokenImageIpfsHash

asset image IPFS hash

outputs0uint256resultCode

result code of an operation

function

createCrowdsaleCampaign 76d064d7

Creates crowdsale campaign of a token with provided symbol Might take an additional fee in TIME tokens

inputs0bytes32_symbol

a token symbol

inputs1bytes32_crowdsaleFactoryName
outputs0uint256
function

deleteCrowdsaleCampaign 25115a36

Stops token's crowdsale

inputs0address_crowdsale

a crowdsale address

outputs0uint256result

result code of an operation

function

destroy 83197ef0

Only owner can call it

Destroy contract and scrub a data

function, constant

getAssetOwnershipManager 94d0169f

Gets an interface for managing assets' ownership

outputs0address
function, constant

getEventsHistory fff10aba

Gets events history contract address

function, constant

getReissueAssetProxy d363228f

Gets a proxy where possible to reissue assets

outputs0address
function, constant

getRevokeAssetProxy 698f7683

Gets a proxy where possible to revoke assets

outputs0address
function, constant

getTokenFactory 925d6ba2

Gets token and proxy factory

outputs0address
function

init 19ab453c

Designed to be used by ancestors, inits internal fields. Will rollback transaction if something goes wrong during initialization. Registers contract as a service in ContractManager with given _type.

inputs0address_contractsManager

is contract manager, must be not 0x0

outputs0uint256
function, constant

lookupManager 4fe59012

Makes search in contractsManager for registered contract by some identifier

inputs0bytes32_identifier

string identifier of a manager

outputs0addressmanager

address of a manager, 0x0 if nothing was found

function, constant

pendingContractOwner 5aa77d3c

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