@@ -13,7 +13,6 @@ import {
13
13
ISecurityTokenRegistryTickerRemovedEventArgs ,
14
14
ISecurityTokenRegistryChangeTickerOwnershipEventArgs ,
15
15
ISecurityTokenRegistryChangeFeeCurrencyEventArgs ,
16
- ISecurityTokenRegistryNewSecurityTokenCreatedEventArgs ,
17
16
ISecurityTokenRegistrySecurityTokenRefreshedEventArgs ,
18
17
ISecurityTokenRegistryProtocolFactorySetEventArgs ,
19
18
ISecurityTokenRegistryLatestVersionSetEventArgs ,
@@ -62,15 +61,6 @@ interface GetChangeFeeCurrencyLogsAsyncParams extends GetLogsAsyncParams {
62
61
eventName : ISecurityTokenRegistryEvents . ChangeFeeCurrency ;
63
62
}
64
63
65
- interface NewSecurityTokenCreatedSubscribeAsyncParams extends SubscribeAsyncParams {
66
- eventName : ISecurityTokenRegistryEvents . NewSecurityTokenCreated ;
67
- callback : EventCallback < ISecurityTokenRegistryNewSecurityTokenCreatedEventArgs > ;
68
- }
69
-
70
- interface GetNewSecurityTokenCreatedLogsAsyncParams extends GetLogsAsyncParams {
71
- eventName : ISecurityTokenRegistryEvents . NewSecurityTokenCreated ;
72
- }
73
-
74
64
interface SecurityTokenRefreshedSubscribeAsyncParams extends SubscribeAsyncParams {
75
65
eventName : ISecurityTokenRegistryEvents . SecurityTokenRefreshed ;
76
66
callback : EventCallback < ISecurityTokenRegistrySecurityTokenRefreshedEventArgs > ;
@@ -199,7 +189,6 @@ interface GetUnpauseLogsAsyncParams extends GetLogsAsyncParams {
199
189
200
190
interface SecurityTokenRegistrySubscribeAsyncParams extends Subscribe {
201
191
( params : ChangeFeeCurrencySubscribeAsyncParams ) : Promise < string > ;
202
- ( params : NewSecurityTokenCreatedSubscribeAsyncParams ) : Promise < string > ;
203
192
( params : SecurityTokenRefreshedSubscribeAsyncParams ) : Promise < string > ;
204
193
( params : ProtocolFactorySetSubscribeAsyncParams ) : Promise < string > ;
205
194
( params : LatestVersionSetSubscribeAsyncParams ) : Promise < string > ;
@@ -220,9 +209,6 @@ interface GetISecurityTokenRegistryLogsAsyncParams extends GetLogs {
220
209
( params : GetChangeFeeCurrencyLogsAsyncParams ) : Promise <
221
210
LogWithDecodedArgs < ISecurityTokenRegistryChangeFeeCurrencyEventArgs > [ ]
222
211
> ;
223
- ( params : GetNewSecurityTokenCreatedLogsAsyncParams ) : Promise <
224
- LogWithDecodedArgs < ISecurityTokenRegistryNewSecurityTokenCreatedEventArgs > [ ]
225
- > ;
226
212
( params : GetSecurityTokenRefreshedLogsAsyncParams ) : Promise <
227
213
LogWithDecodedArgs < ISecurityTokenRegistrySecurityTokenRefreshedEventArgs > [ ]
228
214
> ;
@@ -500,7 +486,6 @@ interface SecurityTokenData {
500
486
owner : string ;
501
487
tokenDetails : string ;
502
488
deployedAt : Date ;
503
- version : string ;
504
489
}
505
490
506
491
interface TickerDetails {
@@ -563,15 +548,11 @@ export default class SecurityTokenRegistryWrapper extends ContractWrapper {
563
548
public getSecurityTokenData = async ( params : SecurityTokenAddressParams ) => {
564
549
assert . isETHAddressHex ( 'securityTokenAddress' , params . securityTokenAddress ) ;
565
550
const result = await ( await this . contract ) . getSecurityTokenData . callAsync ( params . securityTokenAddress ) ;
566
- const unpackVersion = result [ 4 ] . map ( num => {
567
- return num . toNumber ( ) ;
568
- } ) ;
569
551
const typedResult : SecurityTokenData = {
570
552
ticker : result [ 0 ] ,
571
553
owner : result [ 1 ] ,
572
554
tokenDetails : result [ 2 ] ,
573
555
deployedAt : bigNumberToDate ( result [ 3 ] ) ,
574
- version : unpackVersion . join ( '.' ) ,
575
556
} ;
576
557
return typedResult ;
577
558
} ;
0 commit comments