@@ -272,7 +272,7 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
272
272
* check withholding tax for an investor
273
273
* @return amount of withholding tax
274
274
*/
275
- public withholdingTax = async ( params : InvestorParams ) => {
275
+ public withholdingTax = async ( params : InvestorParams ) : Promise < BigNumber > => {
276
276
assert . isETHAddressHex ( 'investor' , params . investor ) ;
277
277
return ( await this . contract ) . withholdingTax . callAsync ( params . investor ) ;
278
278
} ;
@@ -595,7 +595,7 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
595
595
* @return investor balances
596
596
* @return investor withheld percentages
597
597
*/
598
- public getCheckpointData = async ( params : CheckpointIdParams ) => {
598
+ public getCheckpointData = async ( params : CheckpointIdParams ) : Promise < CheckpointData [ ] > => {
599
599
const currentCheckpointId = await ( await this . securityTokenContract ( ) ) . currentCheckpointId . callAsync ( ) ;
600
600
assert . assert ( params . checkpointId <= new BigNumber ( currentCheckpointId ) . toNumber ( ) , 'Invalid checkpoint' ) ;
601
601
const result = await ( await this . contract ) . getCheckpointData . callAsync ( numberToBigNumber ( params . checkpointId ) ) ;
@@ -622,7 +622,7 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
622
622
* Checks whether an address has claimed a dividend
623
623
* @return bool whether the address has claimed
624
624
*/
625
- public isClaimed = async ( params : InvestorStatus ) => {
625
+ public isClaimed = async ( params : InvestorStatus ) : Promise < boolean > => {
626
626
assert . isETHAddressHex ( 'investor' , params . investor ) ;
627
627
assert . assert ( await this . isValidDividendIndex ( params . dividendIndex ) , 'Invalid dividend index' ) ;
628
628
return ( await this . contract ) . isClaimed . callAsync ( params . investor , numberToBigNumber ( params . dividendIndex ) ) ;
@@ -632,7 +632,7 @@ export default abstract class DividendCheckpointWrapper extends ModuleWrapper {
632
632
* Checks whether an address is excluded from claiming a dividend
633
633
* @return bool whether the address is excluded
634
634
*/
635
- public isExcluded = async ( params : InvestorStatus ) => {
635
+ public isExcluded = async ( params : InvestorStatus ) : Promise < boolean > => {
636
636
assert . isETHAddressHex ( 'investor' , params . investor ) ;
637
637
assert . assert ( await this . isValidDividendIndex ( params . dividendIndex ) , 'Invalid dividend index' ) ;
638
638
return ( await this . contract ) . isExcluded . callAsync ( params . investor , numberToBigNumber ( params . dividendIndex ) ) ;
0 commit comments