@hubiinetwork/soldoc
Version:
Solidity documentation generator
768 lines (364 loc) • 10.5 kB
Markdown
# TokenHolderRevenueFund
[see the source](https://github.com/dev-matan-tsuberi/soldoc/tree/master/contracts/TokenHolderRevenueFund.sol)
> TokenHolderRevenueFund
**Execution cost**: less than 43314 gas
**Deployment cost**: less than 2074400 gas
**Combined cost**: less than 2117714 gas
## Constructor
Params:
1. **owner** *of type `address`*
## Events
### RegisterServiceEvent(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### ChangeOperatorEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldOperator** *of type `address`*
2. **newOperator** *of type `address`*
### ChangeDeployerEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldDeployer** *of type `address`*
2. **newDeployer** *of type `address`*
### RegisterServiceDeferredEvent(address,uint256)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **timeout** *of type `uint256`*
### ChangeRevenueTokenEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldRevenueToken** *of type `address`*
2. **newRevenueToken** *of type `address`*
### ChangeTransferControllerManagerEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldTransferControllerManager** *of type `address`*
2. **newTransferControllerManager** *of type `address`*
### ClaimAccrualEvent(address,address,uint256)
**Execution cost**: No bound available
Params:
1. **from** *of type `address`*
2. **currencyCt** *of type `address`*
3. **currencyId** *of type `uint256`*
### CloseAccrualPeriodEvent()
**Execution cost**: No bound available
### DepositEvent(address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **from** *of type `address`*
2. **amount** *of type `int256`*
3. **currencyCt** *of type `address`*
4. **currencyId** *of type `uint256`*
### DeregisterServiceEvent(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### DisableServiceActionEvent(address,string)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **action** *of type `string`*
### EnableServiceActionEvent(address,string)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **action** *of type `string`*
### ServiceActivationTimeoutEvent(uint256)
**Execution cost**: No bound available
Params:
1. **timeoutInSeconds** *of type `uint256`*
### WithdrawEvent(address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **to** *of type `address`*
2. **amount** *of type `int256`*
3. **currencyCt** *of type `address`*
4. **currencyId** *of type `uint256`*
## Fallback
**Execution cost**: No bound available
**Attributes**: payable
## Methods
### operator()
**Execution cost**: less than 1050 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### changeOperator(address)
>
>Change the operator of this contract
**Execution cost**: No bound available
Params:
1. **newOperator** *of type `address`*
> The address of the new operator
### aggregateAccrualBalance(address,uint256)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **currencyCt** *of type `address`*
2. **currencyId** *of type `uint256`*
Returns:
1. **output_0** *of type `int256`*
### changeDeployer(address)
>
>Change the deployer of this contract
**Execution cost**: No bound available
Params:
1. **newDeployer** *of type `address`*
> The address of the new deployer
### CLOSE_ACCRUAL_PERIOD_ACTION()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `string`*
### isEnabledServiceAction(address,string)
>
>Gauge whether a service contract action is enabled which implies also registered and activated
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **service** *of type `address`*
> The address of the service contract
2. **action** *of type `string`*
> The name of action
Returns:
1. **output_0** *of type `bool`*
### enableServiceAction(address,string)
>
>Enable a named action in an already registered service contract
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
> The address of the registered service contract
2. **action** *of type `string`*
> The name of the enabled action
### depositCount(address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `uint256`*
### depositEthersTo(address)
**Execution cost**: No bound available
**Attributes**: payable
Params:
1. **wallet** *of type `address`*
### disableServiceAction(address,string)
>
>Enable a named action in a service contract
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
> The address of the service contract
2. **action** *of type `string`*
> The name of the disabled action
### closeAccrualPeriod()
**Execution cost**: No bound available
### depositTokens(int256,address,uint256,string)
**Execution cost**: No bound available
Params:
1. **amount** *of type `int256`*
2. **currencyCt** *of type `address`*
3. **currencyId** *of type `uint256`*
4. **standard** *of type `string`*
### destructor()
>
>Return the address that is able to initiate self-destruction
**Execution cost**: less than 962 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### deposit(address,uint256)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
2. **index** *of type `uint256`*
Returns:
1. **amount** *of type `int256`*
2. **timestamp** *of type `uint256`*
3. **token** *of type `address`*
4. **id** *of type `uint256`*
### depositTokensTo(address,int256,address,uint256,string)
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
2. **amount** *of type `int256`*
3. **currencyCt** *of type `address`*
4. **currencyId** *of type `uint256`*
5. **standard** *of type `string`*
### deregisterService(address)
>
>Deregister a service contract
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
> The address of the deregistered service contract
### changeRevenueToken(address)
>
>Change the revenue token contract
**Execution cost**: No bound available
Params:
1. **newRevenueToken** *of type `address`*
> The (address of) RevenueToken contract instance
### deployer()
**Execution cost**: less than 1292 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### changeTransferControllerManager(address)
>
>Change the currency manager contract
**Execution cost**: No bound available
Params:
1. **newAddress** *of type `address`*
> The (address of) TransferControllerManager contract instance
### claimAccrual(address,uint256)
**Execution cost**: No bound available
Params:
1. **currencyCt** *of type `address`*
2. **currencyId** *of type `uint256`*
### isRegisteredActiveService(address)
>
>Gauge whether a service contract is registered and activated
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **service** *of type `address`*
> The address of the service contract
Returns:
1. **output_0** *of type `bool`*
### registerService(address)
>
>Register a service contract whose activation is immediate
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
> The address of the registered service contract
### periodAccrualBalance(address,uint256)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **currencyCt** *of type `address`*
2. **currencyId** *of type `uint256`*
Returns:
1. **output_0** *of type `int256`*
### isRegisteredService(address)
>
>Gauge whether a service contract is registered
**Execution cost**: less than 1067 gas
**Attributes**: constant
Params:
1. **service** *of type `address`*
> The address of the service contract
Returns:
1. **output_0** *of type `bool`*
### registerServiceDeferred(address)
>
>Register a service contract whose activation is deferred by the service activation timeout
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
> The address of the registered service contract
### serviceActivationTimeout()
**Execution cost**: less than 768 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `uint256`*
### setServiceActivationTimeout(uint256)
>
>Set the service activation timeout
**Execution cost**: No bound available
Params:
1. **timeoutInSeconds** *of type `uint256`*
> The set timeout in unit of seconds
### stagedBalance(address,address,uint256)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
2. **currencyCt** *of type `address`*
3. **currencyId** *of type `uint256`*
Returns:
1. **output_0** *of type `int256`*
### transferControllerManager()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### triggerDestroy()
**Execution cost**: No bound available
### withdraw(int256,address,uint256,string)
**Execution cost**: No bound available
Params:
1. **amount** *of type `int256`*
2. **currencyCt** *of type `address`*
3. **currencyId** *of type `uint256`*
4. **standard** *of type `string`*
### withdrawal(address,uint256)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
2. **index** *of type `uint256`*
Returns:
1. **amount** *of type `int256`*
2. **timestamp** *of type `uint256`*
3. **token** *of type `address`*
4. **id** *of type `uint256`*
### withdrawalCount(address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `uint256`*
[Back to the top ↑](#tokenholderrevenuefund)