File tree Expand file tree Collapse file tree
packages/apps/reputation-oracle/server/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ export class ReputationGetAllQueryDto {
9595
9696export class ReputationGetParamsDto {
9797 @ApiProperty ( )
98- @IsString ( )
9998 @IsEthereumAddress ( )
10099 public address : string ;
101100}
@@ -112,7 +111,6 @@ export class ReputationDto {
112111 chainId : ChainId ;
113112
114113 @ApiProperty ( )
115- @IsString ( )
116114 @IsEthereumAddress ( )
117115 address : string ;
118116
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import {
3131 RegisterLabelerResponseDto ,
3232 EnableOperatorDto ,
3333 RegistrationInExchangeOracleDto ,
34- RegistrationInExchangeOraclesDto ,
34+ RegistrationInExchangeOraclesResponseDto ,
3535 RegistrationInExchangeOracleResponseDto ,
3636} from './user.dto' ;
3737import { UserService } from './user.service' ;
@@ -201,7 +201,7 @@ export class UserController {
201201 @ApiResponse ( {
202202 status : 200 ,
203203 description : 'List of registered oracles retrieved successfully' ,
204- type : RegistrationInExchangeOraclesDto ,
204+ type : RegistrationInExchangeOraclesResponseDto ,
205205 } )
206206 @ApiResponse ( {
207207 status : 401 ,
@@ -210,7 +210,7 @@ export class UserController {
210210 @Get ( '/exchange-oracle-registration' )
211211 async getRegistrationInExchangeOracles (
212212 @Req ( ) request : RequestWithUser ,
213- ) : Promise < RegistrationInExchangeOraclesDto > {
213+ ) : Promise < RegistrationInExchangeOraclesResponseDto > {
214214 const oracleAddresses =
215215 await this . userService . getRegistrationInExchangeOracles ( request . user ) ;
216216
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class RegisterLabelerResponseDto {
1313
1414export class RegisterAddressRequestDto {
1515 @ApiProperty ( )
16- @IsString ( )
16+ @IsEthereumAddress ( )
1717 address : string ;
1818
1919 @ApiProperty ( )
@@ -35,12 +35,10 @@ export class DisableOperatorDto {
3535
3636export class SignatureBodyDto {
3737 @ApiProperty ( )
38- @IsString ( )
3938 @IsEthereumAddress ( )
4039 from : string ;
4140
4241 @ApiProperty ( )
43- @IsString ( )
4442 @IsEthereumAddress ( )
4543 to : string ;
4644
@@ -56,7 +54,6 @@ export class SignatureBodyDto {
5654
5755export class PrepareSignatureDto {
5856 @ApiProperty ( )
59- @IsString ( )
6057 @IsEthereumAddress ( )
6158 address : string ;
6259
@@ -87,7 +84,7 @@ export class RegistrationInExchangeOracleResponseDto {
8784 oracleAddress : string ;
8885}
8986
90- export class RegistrationInExchangeOraclesDto {
87+ export class RegistrationInExchangeOraclesResponseDto {
9188 @ApiProperty ( { name : 'oracle_addresses' } )
9289 oracleAddresses : string [ ] ;
9390}
You can’t perform that action at this time.
0 commit comments