mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
Interface for TransactionCreateCoin and TransactionSendCoin
This commit is contained in:
parent
4717b0ba4c
commit
66e629daa2
@ -1,3 +1,4 @@
|
|||||||
|
import { Transaction } from '../../entity/Transaction'
|
||||||
import { TransactionSendCoin } from '../../entity/TransactionSendCoin'
|
import { TransactionSendCoin } from '../../entity/TransactionSendCoin'
|
||||||
import { TransactionCreation } from '../../entity/TransactionCreation'
|
import { TransactionCreation } from '../../entity/TransactionCreation'
|
||||||
import { User } from '../../entity/User'
|
import { User } from '../../entity/User'
|
||||||
@ -18,3 +19,20 @@ export interface BalanceContext {
|
|||||||
amount?: number
|
amount?: number
|
||||||
user?: User
|
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?: Timestamp
|
||||||
|
transaction?: Transaction
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user