Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/bounties/bounties.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ import {
ApiStandardErrorResponses,
} from '../common/swagger/api-common-responses.decorator';

<<<<<<< HEAD
class FundBountyDto {
@ApiProperty()
=======
export class FundBountyDto {
@ApiProperty({ description: 'Stellar public key of the funder' })
>>>>>>> origin/main
@IsStellarAddress()
funderAddress: string;
}
Expand Down
6 changes: 6 additions & 0 deletions src/escrow/escrow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,12 @@ export class EscrowService {
`Unsupported escrow asset: ${String(input.asset)}`,
);
}
const tokenContract = this.resolveTokenAddress(input.asset);
if (!tokenContract) {
throw new BadRequestException(
`Asset ${String(input.asset)} has no configured token contract on this server`,
);
}
this.assertExactlyOneParent(input);
}

Expand Down
5 changes: 2 additions & 3 deletions src/maintenance-pool/dto/create-pool.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ export class CreatePoolDto {
@IsUUID()
repositoryId?: string;

@ApiProperty({ required: false })
@IsOptional()
@ApiProperty()
@IsUUID()
createdById?: string;
createdById: string;

/** The sponsor's standing recurring commitment; deposits never overwrite it (#93). */
@ApiProperty({ required: false })
Expand Down
5 changes: 2 additions & 3 deletions src/milestones/dto/create-milestone.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ export class CreateMilestoneDto {
@IsUUID()
repositoryId: string;

@ApiProperty({ required: false })
@IsOptional()
@ApiProperty()
@IsUUID()
sponsorId?: string;
sponsorId: string;

@ApiProperty({ maxLength: 200 })
@Transform(({ value }: { value: unknown }) =>
Expand Down
1 change: 1 addition & 0 deletions src/milestones/milestones.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class ResolveIssueDto {
required: false,
description: 'Optional user UUID of the recipient',
})
>>>>>>> origin/main
@IsOptional()
@IsUUID()
recipientId?: string;
Expand Down
5 changes: 2 additions & 3 deletions src/teams/dto/create-team.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ export class CreateTeamDto {
@MaxLength(100)
name: string;

@ApiProperty({ required: false })
@IsOptional()
@ApiProperty()
@IsUUID()
createdById?: string;
createdById: string;

@ApiProperty({ type: [TeamMemberSplitDto] })
@ArrayMinSize(1)
Expand Down