diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-03 00:52:15 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-03 00:52:15 +0100 |
commit | c33dd75711a39403bd4dd9940caab6d5e6ad2d77 (patch) | |
tree | 7d7d9c64b5074a8f533302add3b1674c5d424c8d /src/walletTypes.ts | |
parent | a5137c32650b0b9aa2abbe55e4f4f3f60ed78e07 (diff) | |
download | wallet-core-c33dd75711a39403bd4dd9940caab6d5e6ad2d77.tar.xz |
pending operations (pay/proposals)
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r-- | src/walletTypes.ts | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts index b12b29c56..be88fc5b0 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -578,13 +578,25 @@ export interface PendingRefreshOperation { refreshOutputSize: number; } + export interface PendingDirtyCoinOperation { type: "dirty-coin"; coinPub: string; } -export interface PendingProposalOperation { - type: "proposal"; +export interface PendingProposalDownloadOperation { + type: "proposal-download"; + merchantBaseUrl: string; + proposalTimestamp: Timestamp; + proposalId: string; +} + +/** + * User must choose whether to accept or reject the merchant's + * proposed contract terms. + */ +export interface PendingProposalChoiceOperation { + type: "proposal-choice"; merchantBaseUrl: string; proposalTimestamp: Timestamp; proposalId: string; @@ -597,6 +609,12 @@ export interface PendingTipOperation { merchantTipId: string; } +export interface PendingPayOperation { + type: "pay"; + proposalId: string; + isReplay: boolean; +} + export type PendingOperationInfo = | PendingWithdrawOperation | PendingReserveOperation @@ -605,7 +623,9 @@ export type PendingOperationInfo = | PendingExchangeUpdateOperation | PendingRefreshOperation | PendingTipOperation - | PendingProposalOperation; + | PendingProposalDownloadOperation + | PendingProposalChoiceOperation + | PendingPayOperation; export interface PendingOperationsResponse { pendingOperations: PendingOperationInfo[]; |