TimeHolder'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 TimeHolder contract.
/contracts/timeholder/TimeHolderWallet.sol

constructor

TimeHolderWallet

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 timeHolder

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 83197ef0

Only owner can call it

Destroy contract and scrub a data

function

destroy c6786e5a

Call selfdestruct when contract is not needed anymore. Also takes a list of tokens that can be associated and have an account for this contract

Allowed only for contract owner

inputs0address[]tokens

an array of tokens addresses

outputs0uint256
function

init 19ab453c

inputs0address_contractsManager
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

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 timeHolder

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