@hubiinetwork/soldoc
Version:
Solidity documentation generator
359 lines (164 loc) • 5.61 kB
Markdown
# FraudChallengeByDoubleSpentOrders
[see the source](https://github.com/dev-matan-tsuberi/soldoc/tree/master/contracts/FraudChallengeByDoubleSpentOrders.sol)
> FraudChallengeByDoubleSpentOrders
**Execution cost**: less than 42463 gas
**Deployment cost**: less than 1305400 gas
**Combined cost**: less than 1347863 gas
## Constructor
Params:
1. **owner** *of type `address`*
## Events
### ChallengeByDoubleSpentOrdersEvent(tuple,tuple,address)
**Execution cost**: No bound available
Params:
1. **trade1** *of type `tuple`*
2. **trade2** *of type `tuple`*
3. **challenger** *of type `address`*
### ChangeConfigurationEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldConfiguration** *of type `address`*
2. **newConfiguration** *of type `address`*
### ChangeDeployerEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldDeployer** *of type `address`*
2. **newDeployer** *of type `address`*
### ChangeFraudChallengeEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldAddress** *of type `address`*
2. **newAddress** *of type `address`*
### ChangeOperatorEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldOperator** *of type `address`*
2. **newOperator** *of type `address`*
### ChangeSecurityBondEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldAddress** *of type `address`*
2. **newAddress** *of type `address`*
### ChangeValidatorEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldAddress** *of type `address`*
2. **newAddress** *of type `address`*
## Methods
### changeConfiguration(address)
>
>Change the configuration contract
**Execution cost**: No bound available
Params:
1. **newConfiguration** *of type `address`*
> The (address of) Configuration contract instance
### 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
### changeFraudChallenge(address)
>
>Change the fraudChallenge contract
**Execution cost**: No bound available
Params:
1. **newAddress** *of type `address`*
> The (address of) FraudChallenge contract instance
### 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
### challenge(tuple,tuple)
**Execution cost**: No bound available
Params:
1. **trade1** *of type `tuple`*
2. **trade2** *of type `tuple`*
### changeSecurityBond(address)
>
>Change the security bond contract
**Execution cost**: No bound available
Params:
1. **newAddress** *of type `address`*
> The (address of) SecurityBond contract instance
### changeValidator(address)
>
>Change the validator contract
**Execution cost**: No bound available
Params:
1. **newAddress** *of type `address`*
> The (address of) Validator contract instance
### configuration()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### deployer()
**Execution cost**: less than 940 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### destructor()
>
>Return the address that is able to initiate self-destruction
**Execution cost**: less than 764 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### fraudChallenge()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### operator()
**Execution cost**: less than 786 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### securityBond()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### triggerDestroy()
**Execution cost**: No bound available
### validator()
**Execution cost**: No bound available
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### challenge((uint256,int256,((address,uint256),(address,uint256)),int256,(uint256,address,uint256,uint8,(int256,(bytes32,bytes32),(int256,int256)),((int256,int256),(int256,int256)),((int256,(address,uint256)),(int256,(address,uint256))[])),(uint256,address,uint256,uint8,(int256,(bytes32,bytes32),(int256,int256)),((int256,int256),(int256,int256)),((int256,(address,uint256)),(int256,(address,uint256))[])),((int256,int256),(int256,int256)),(bytes32,(bytes32,bytes32,uint8)),uint256),(uint256,int256,((address,uint256),(address,uint256)),int256,(uint256,address,uint256,uint8,(int256,(bytes32,bytes32),(int256,int256)),((int256,int256),(int256,int256)),((int256,(address,uint256)),(int256,(address,uint256))[])),(uint256,address,uint256,uint8,(int256,(bytes32,bytes32),(int256,int256)),((int256,int256),(int256,int256)),((int256,(address,uint256)),(int256,(address,uint256))[])),((int256,int256),(int256,int256)),(bytes32,(bytes32,bytes32,uint8)),uint256))
>
>Submit two trade candidates in continuous Fraud Challenge (FC) to be tested for trade order double spenditure
**Execution cost**: No bound available
Params:
1. **trade1** *of type `undefined`*
> First trade with double spent order
2. **trade2** *of type `undefined`*
> Last trade with double spent order
[Back to the top ↑](#fraudchallengebydoublespentorders)