mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { Transaction } from '../../entity/Transaction'
|
|
import { TransactionSendCoin } from '../../entity/TransactionSendCoin'
|
|
import { TransactionCreation } from '../../entity/TransactionCreation'
|
|
import { User } from '../../entity/User'
|
|
|
|
export interface TransactionContext {
|
|
transactionTypeId?: number
|
|
txHash?: Buffer
|
|
memo?: string
|
|
received?: Date
|
|
blockchainTypeId?: number
|
|
signature?: Buffer
|
|
signaturePubkey?: Buffer
|
|
transactionSendCoin?: TransactionSendCoin
|
|
transactionCreation?: TransactionCreation
|
|
}
|
|
|
|
export interface BalanceContext {
|
|
modified?: Date
|
|
recordDate?: Date
|
|
amount?: number
|
|
user?: User
|
|
}
|
|
|
|
export interface TransactionSendCoinContext {
|
|
senderPublic?: Buffer
|
|
userId?: number
|
|
recipiantPublic?: Buffer
|
|
recipiantUserId?: number
|
|
amount?: number
|
|
senderFinalBalance?: number
|
|
transaction?: Transaction
|
|
}
|
|
|
|
export interface TransactionCreationContext {
|
|
userId?: number
|
|
amount?: number
|
|
targetDate?: Date
|
|
transaction?: Transaction
|
|
}
|
|
|
|
export interface UserTransactionContext {
|
|
userId?: number
|
|
transactionId?: number
|
|
transactionTypeId?: number
|
|
balance?: number
|
|
balanceDate?: Date
|
|
signature?: Buffer
|
|
pubkey?: Buffer
|
|
}
|