aboutsummaryrefslogtreecommitdiff
path: root/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-06 03:23:35 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-06 03:23:35 +0100
commite01f94e345bd94afe1643b55434a00c106d18954 (patch)
tree3b02c463fde9095b15a787c187bd58770c9a8161 /src/walletTypes.ts
parent4159367d8c04b96a05da8a5ded043f8296a83174 (diff)
downloadwallet-core-e01f94e345bd94afe1643b55434a00c106d18954.tar.xz
pending fixes
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r--src/walletTypes.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts
index 6e246c682..4c3458705 100644
--- a/src/walletTypes.ts
+++ b/src/walletTypes.ts
@@ -519,6 +519,7 @@ export const enum NotificationType {
ReserveUpdated = "reserve-updated",
ReserveConfirmed = "reserve-confirmed",
ReserveDepleted = "reserve-depleted",
+ ReserveCreated = "reserve-created",
WithdrawSessionCreated = "withdraw-session-created",
WithdrawSessionFinished = "withdraw-session-finished",
WaitingForRetry = "waiting-for-retry",
@@ -534,6 +535,7 @@ export const enum NotificationType {
PayOperationError = "pay-error",
WithdrawOperationError = "withdraw-error",
ReserveOperationError = "reserve-error",
+ Wildcard = "wildcard",
}
export interface ProposalAcceptedNotification {
@@ -656,6 +658,14 @@ export interface ReserveOperationErrorNotification {
type: NotificationType.ReserveOperationError;
}
+export interface ReserveCreatedNotification {
+ type: NotificationType.ReserveCreated;
+}
+
+export interface WildcardNotification {
+ type: NotificationType.Wildcard;
+}
+
export type WalletNotification =
| WithdrawOperationErrorNotification
| ReserveOperationErrorNotification
@@ -676,6 +686,7 @@ export type WalletNotification =
| RefreshStartedNotification
| RefreshRefusedNotification
| ReserveUpdatedNotification
+ | ReserveCreatedNotification
| ReserveConfirmedNotification
| WithdrawSessionFinishedNotification
| ReserveDepletedNotification
@@ -684,7 +695,8 @@ export type WalletNotification =
| RefundFinishedNotification
| RefundQueriedNotification
| WithdrawSessionCreatedNotification
- | CoinWithdrawnNotification;
+ | CoinWithdrawnNotification
+ | WildcardNotification;
export interface OperationError {
type: string;