mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { TransferAmount } from '@/data/proto/3_3/TransferAmount'
|
|
|
|
import { AbstractLoggingView } from './AbstractLogging.view'
|
|
|
|
export class TransferAmountLoggingView extends AbstractLoggingView {
|
|
public constructor(private self: TransferAmount) {
|
|
super()
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
public toJSON(): any {
|
|
return {
|
|
pubkey: Buffer.from(this.self.pubkey).toString(this.bufferStringFormat),
|
|
amount: this.self.amount,
|
|
communityId: this.self.communityId,
|
|
}
|
|
}
|
|
}
|