LOCManager's wallet contract defines a basic implementation of DepositWalletInterface to provide a way to store/deposit/withdraw tokens on this contract according to access rights. Here deposit/withdraw are allowed only by LOCManager contract.
/contracts/loc/LOCWallet.sol

constructor

LOCWallet

inputs0address_store
inputs1bytes32_crate
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

deposit 8340f549

Deposits some amount of tokens on wallet's account using ERC20 tokens

Allowed only for locManager

inputs0address_asset

an address of token

inputs1address_from

an address of a sender who is willing to transfer her resources

inputs2uint256_amount

an amount of tokens (resources) a sender wants to transfer

outputs0bool
function

destroy c6786e5a

Allows contract owner to destroy a contract and withdraw all tokens associated with this address to a message sender

Allowed only for contract owner

inputs0address[]tokens

an array of ERC20-compatible assets

outputs0uint256
function

destroy 83197ef0

Forbidden to invoke this implementation of destroy method. See another one which takes tokens' addresses

Reverts all actions when this method was invoked

function

fallbackAsset 306a547d

Designed to check if a wallet supports fallback interface. Should be simple and return true or false depending on wether a contract wants to support this interface or not.

inputs0bytes32_symbol

asset's symbol

outputs0bool
function

fallbackAssetInvoke 51ae07d9

Defines main operation that will be performed throughout fallback interface. This method will be invoked only in case if fallbackAsset returns true. Purpose is to delegate invocation of any method that contract is allowed to call to a token extension.

inputs0bytes32_symbol

asset's symbol

inputs1address_from

destination of calling. Contract that will be proposed to be called with data

inputs2bytes_data

data passed to call on _from address

outputs0bool
function

fallbackAssetPassOwnership 44fc19cc

Helper method to provide a way to pass ownership of the platform after all operations are done to its real owner.

inputs0bytes32_symbol

asset's symbol

inputs1address_to

real platform owner

outputs0bool
function

init 19ab453c

Initializes contract with its ready-to-use state

inputs0address_contractsManager

contracts manager address

outputs0bool
function, constant

isAuthorized fe9fbb80

inputs0addresskey
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

reissue b682da53

Performs reissuing of an asset in provided platform for a specified amount.

Allowed only for LOCManager

inputs0address_platform

platform address

inputs1bytes32_symbol

asset that is registered in a platform and needed to be reissued

inputs2uint256_amount

a number of tokens to reissue

outputs0uint256
function

revoke 6d5aa458

Performs revokation of an asset in provided platform for a specified amount.

Allowed only for LOCManager

inputs0address_platform

platform address

inputs1bytes32_symbol

asset that is registered in a platform and needed to be revoked

inputs2uint256_amount

a number of tokens to revoke

outputs0uint256
function

setContractsManager 71d3b573

Setter for ContractsManager. Force overrides currect manager.

inputs0address_contractsManager

contracts manager. 0x0 is not allowed.

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

withdraw d9caed12

Withdraws some amount of tokens from wallet's account using ERC20 tokens

Allowed only for locManager

inputs0address_asset

an address of token

inputs1address_to

an address of a receiver who is willing to get stored resources

inputs2uint256_amount

an amount of tokens (resources) a receiver wants to get

outputs0bool
function

withdrawnTokens d8f9659b

inputs0address[]tokens
inputs1address_to