Skip to content

AppCoinsTimelock contract

Gustavo Rios de Sousa e Silva edited this page Sep 26, 2018 · 11 revisions

Features

Token holder contract
That will allow a beneficiary to extract the tokens after a given time

How to test

How to Allocate funds

A. Call the method allocateFunds. You need Gas to run this command.

This method is usually called by the store. It allocates AppCoins funds of an address until the release time expires.

Name Description
address address of the user that will have its funds allocated
amount amount to be allocated

B. Call the method allocateFundsBulk. You need Gas to run this command.

This method is usually called by the store. It allocates AppCoins funds of multiple addresses until the release time expires.

Name Description
addresses array of addresses that will have its funds allocated
amounts array of amounta to be allocated

Release funds

Call the method releaseFunds. You need Gas to run this command.

This method is usually called by the store. If the release time has expired, it will release the funds to a address.

Name Description
address address of the user that will get the tokens