Skip to content

feat: realunit sell endpoints for bitbox#3635

Draft
xlamn wants to merge 2 commits intodevelopfrom
feat/sell-for-bitbox
Draft

feat: realunit sell endpoints for bitbox#3635
xlamn wants to merge 2 commits intodevelopfrom
feat/sell-for-bitbox

Conversation

@xlamn
Copy link
Copy Markdown
Collaborator

@xlamn xlamn commented Apr 28, 2026

Release Checklist

Pre-Release

  • Check migrations
    • No database related infos (sqldb-xxx)
    • Impact on GS (new/removed columns)
  • Check for linter errors (in PR)
  • Test basic user operations (on DFX services)
    • Login/logout
    • Buy/sell payment request
    • KYC page

Post-Release

  • Test basic user operations
  • Monitor application insights log

Comment on lines +80 to +85
export class RealUnitSellBroadcastDto {
@ApiProperty({ description: 'Signed transaction hex (0x-prefixed EIP-1559 transaction)' })
@IsNotEmpty()
@IsString()
signedTransaction: string;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it the hex or the envelope?

Comment on lines +1182 to +1186
try {
envelope = JSON.parse(dto.signedTransaction);
} catch {
throw new BadRequestException('Invalid signedTransaction: expected JSON envelope {unsignedTx, r, s, v}');
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use JSON.parse and not the correct DTO format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants