@hubiinetwork/soldoc
Version:
Solidity documentation generator
1,082 lines (528 loc) • 15.6 kB
Markdown
# ClientFund
[see the source](https://github.com/dev-matan-tsuberi/soldoc/tree/master/contracts/ClientFund.sol)
> Client fund
**Execution cost**: less than 64876 gas
**Deployment cost**: less than 3379000 gas
**Combined cost**: less than 3443876 gas
## Constructor
Params:
1. **owner** *of type `address`*
## Events
### UnauthorizeRegisteredServiceEvent(address,address)
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
2. **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`*
### AuthorizeRegisteredServiceActionEvent(address,address,string)
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
2. **service** *of type `address`*
3. **action** *of type `string`*
### AuthorizeRegisteredServiceEvent(address,address)
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
2. **service** *of type `address`*
### RegisterServiceEvent(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### DepositEvent(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`*
### ChangeTransferControllerManagerEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldTransferControllerManager** *of type `address`*
2. **newTransferControllerManager** *of type `address`*
### RegisterServiceDeferredEvent(address,uint256)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **timeout** *of type `uint256`*
### SeizeAllBalancesEvent(address,address)
**Execution cost**: No bound available
Params:
1. **sourceWallet** *of type `address`*
2. **targetWallet** *of type `address`*
### DeregisterBeneficiaryEvent(address)
**Execution cost**: No bound available
Params:
1. **beneficiary** *of type `address`*
### RegisterBeneficiaryEvent(address)
**Execution cost**: No bound available
Params:
1. **beneficiary** *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`*
### DeregisterServiceEvent(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### ServiceActivationTimeoutEvent(uint256)
**Execution cost**: No bound available
Params:
1. **timeoutInSeconds** *of type `uint256`*
### StageEvent(address,int256,address,uint256)
**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`*
### StageToBeneficiaryEvent(address,address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **sourceWallet** *of type `address`*
2. **beneficiary** *of type `address`*
3. **amount** *of type `int256`*
4. **currencyCt** *of type `address`*
5. **currencyId** *of type `uint256`*
### StageToBeneficiaryUntargetedEvent(address,address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **sourceWallet** *of type `address`*
2. **beneficiary** *of type `address`*
3. **amount** *of type `int256`*
4. **currencyCt** *of type `address`*
5. **currencyId** *of type `uint256`*
### UnauthorizeRegisteredServiceActionEvent(address,address,string)
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
2. **service** *of type `address`*
3. **action** *of type `string`*
### UnstageEvent(address,int256,address,uint256)
**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`*
### UpdateSettledBalanceEvent(address,int256,address,uint256)
**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`*
### WithdrawEvent(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`*
## Fallback
**Execution cost**: No bound available
**Attributes**: payable
## Methods
### 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`*
### authorizeRegisteredService(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### authorizeRegisteredServiceAction(address,string)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **action** *of type `string`*
### 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
### 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
### unstage(int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **amount** *of type `int256`*
2. **currencyCt** *of type `address`*
3. **currencyId** *of type `uint256`*
### 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
### deregisterBeneficiary(address)
**Execution cost**: No bound available
Params:
1. **beneficiary** *of type `address`*
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
### isRegisteredService(address)
>
>Gauge whether a service contract is registered
**Execution cost**: less than 1133 gas
**Attributes**: constant
Params:
1. **service** *of type `address`*
> The address of the service contract
Returns:
1. **output_0** *of type `bool`*
### 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
### isAuthorizedServiceActionForWallet(address,string,address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **service** *of type `address`*
2. **action** *of type `string`*
3. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `bool`*
### 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`*
### depositCount(address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `uint256`*
### destructor()
>
>Return the address that is able to initiate self-destruction
**Execution cost**: less than 1029 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. **currencyCt** *of type `address`*
4. **currencyId** *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
### isAuthorizedServiceForWallet(address,address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **service** *of type `address`*
2. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `bool`*
### operator()
**Execution cost**: less than 1138 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### deployer()
**Execution cost**: less than 1556 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### isRegisteredBeneficiary(address)
**Execution cost**: less than 954 gas
**Attributes**: constant
Params:
1. **beneficiary** *of type `address`*
Returns:
1. **output_0** *of type `bool`*
### depositedBalance(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`*
### 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`*
### registerBeneficiary(address)
**Execution cost**: No bound available
Params:
1. **beneficiary** *of type `address`*
Returns:
1. **output_0** *of type `bool`*
### changeTransferControllerManager(address)
>
>Change the currency manager contract
**Execution cost**: No bound available
Params:
1. **newAddress** *of type `address`*
> The (address of) TransferControllerManager contract instance
### withdrawalCount(address)
**Execution cost**: No bound available
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
Returns:
1. **output_0** *of type `uint256`*
### seizeAllBalances(address,address)
**Execution cost**: No bound available
Params:
1. **sourceWallet** *of type `address`*
2. **targetWallet** *of type `address`*
### 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
### stage(address,int256,address,uint256)
**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`*
### settledBalance(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`*
### serviceActivationTimeout()
**Execution cost**: less than 812 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
### stageToBeneficiary(address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **beneficiary** *of type `address`*
2. **amount** *of type `int256`*
3. **currencyCt** *of type `address`*
4. **currencyId** *of type `uint256`*
### stageToBeneficiaryUntargeted(address,address,int256,address,uint256)
**Execution cost**: No bound available
Params:
1. **sourceWallet** *of type `address`*
2. **beneficiary** *of type `address`*
3. **amount** *of type `int256`*
4. **currencyCt** *of type `address`*
5. **currencyId** *of type `uint256`*
### 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
### unauthorizeRegisteredService(address)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
### unauthorizeRegisteredServiceAction(address,string)
**Execution cost**: No bound available
Params:
1. **service** *of type `address`*
2. **action** *of type `string`*
### updateSettledBalance(address,int256,address,uint256)
>
>Update the settled balance by the difference between provided amount and deposited on-chain balance
**Execution cost**: No bound available
Params:
1. **wallet** *of type `address`*
> Concerned wallet
2. **amount** *of type `int256`*
> The off-chain balance amount
3. **currencyCt** *of type `address`*
> Concerned currency contract address (address(0) == ETH)
4. **currencyId** *of type `uint256`*
> Concerned currency ID (0 for ETH and ERC20)
### 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`*
[Back to the top ↑](#clientfund)