1
- import { TxParams , STOBaseContract , FundRaiseType , FULL_DECIMALS } from '../../../types' ;
1
+ import { TxParams , STOBaseContract , FundRaiseType , FULL_DECIMALS } from '../../../types' ;
2
2
import ModuleWrapper from '../module_wrapper' ;
3
3
import assert from '../../../utils/assert' ;
4
4
import { weiToValue } from '../../../utils/convert' ;
@@ -7,10 +7,6 @@ interface FundRaiseTypesParams {
7
7
type : FundRaiseType ;
8
8
}
9
9
10
- interface ReclaimERC20Params extends TxParams {
11
- tokenContract : string ;
12
- }
13
-
14
10
/**
15
11
* This class includes the functionality related to interacting with the all STOs contracts.
16
12
*/
@@ -36,10 +32,7 @@ export default abstract class STOWrapper extends ModuleWrapper {
36
32
* Returns funds raised by the STO
37
33
*/
38
34
public fundsRaised = async ( params : FundRaiseTypesParams ) => {
39
- return weiToValue (
40
- await ( await this . contract ) . fundsRaised . callAsync ( params . type ) ,
41
- FULL_DECIMALS ,
42
- ) ;
35
+ return weiToValue ( await ( await this . contract ) . fundsRaised . callAsync ( params . type ) , FULL_DECIMALS ) ;
43
36
} ;
44
37
45
38
/**
@@ -79,16 +72,13 @@ export default abstract class STOWrapper extends ModuleWrapper {
79
72
*/
80
73
public totalTokensSold = async ( ) => {
81
74
return weiToValue (
82
- await ( await this . contract ) . totalTokensSold . callAsync ( ) ,
83
- await ( await this . securityTokenContract ( ) ) . decimals . callAsync ( ) ,
75
+ await ( await this . contract ) . totalTokensSold . callAsync ( ) ,
76
+ await ( await this . securityTokenContract ( ) ) . decimals . callAsync ( ) ,
84
77
) ;
85
78
} ;
86
79
87
80
public getRaised = async ( params : FundRaiseTypesParams ) => {
88
- return weiToValue (
89
- await ( await this . contract ) . getRaised . callAsync ( params . type ) ,
90
- FULL_DECIMALS ,
91
- ) ;
81
+ return weiToValue ( await ( await this . contract ) . getRaised . callAsync ( params . type ) , FULL_DECIMALS ) ;
92
82
} ;
93
83
94
84
public pause = async ( params : TxParams ) => {
@@ -102,19 +92,4 @@ export default abstract class STOWrapper extends ModuleWrapper {
102
92
assert . assert ( await this . isCallerTheSecurityTokenOwner ( params . txData ) , 'The caller must be the ST owner' ) ;
103
93
return ( await this . contract ) . unpause . sendTransactionAsync ( params . txData , params . safetyFactor ) ;
104
94
} ;
105
-
106
- public reclaimERC20 = async ( params : ReclaimERC20Params ) => {
107
- assert . assert ( await this . isCallerTheSecurityTokenOwner ( params . txData ) , 'The caller must be the ST owner' ) ;
108
- assert . isNonZeroETHAddressHex ( 'tokenContract' , params . tokenContract ) ;
109
- return ( await this . contract ) . reclaimERC20 . sendTransactionAsync (
110
- params . tokenContract ,
111
- params . txData ,
112
- params . safetyFactor ,
113
- ) ;
114
- } ;
115
-
116
- public reclaimETH = async ( params : TxParams ) => {
117
- assert . assert ( await this . isCallerTheSecurityTokenOwner ( params . txData ) , 'The caller must be the ST owner' ) ;
118
- return ( await this . contract ) . reclaimETH . sendTransactionAsync ( params . txData , params . safetyFactor ) ;
119
- } ;
120
95
}
0 commit comments