From 613a14c14f969bf21ff7569f93cde3a7a35ce96a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 31 May 2017 16:04:14 +0200 Subject: fix messaging, small issues and safer types --- src/webex/messages.ts | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'src/webex/messages.ts') diff --git a/src/webex/messages.ts b/src/webex/messages.ts index 21acfc1d5..27ff9a5b6 100644 --- a/src/webex/messages.ts +++ b/src/webex/messages.ts @@ -69,11 +69,11 @@ export interface MessageMap { response: string; }; "confirm-pay": { - request: { offer: types.OfferRecord; }; + request: { proposalId: number; }; response: types.ConfirmPayResult; }; "check-pay": { - request: { offer: types.OfferRecord; }; + request: { proposalId: number; }; response: types.CheckPayResult; }; "query-payment": { @@ -96,21 +96,29 @@ export interface MessageMap { request: { historyEntry: types.HistoryRecord }; response: void; }; - "safe-offer": { - request: { offer: types.OfferRecord }; + "save-proposal": { + request: { proposal: types.ProposalRecord }; response: void; }; "reserve-creation-info": { - request: { baseUrl: string }; + request: { baseUrl: string, amount: types.AmountJson }; response: types.ReserveCreationInfo; } "get-history": { request: { }; response: types.HistoryRecord[]; }; - "get-offer": { - request: { offerId: number }; - response: types.OfferRecord | undefined; + "get-proposal": { + request: { proposalId: number }; + response: types.ProposalRecord | undefined; + }; + "get-coins": { + request: { exchangeBaseUrl: string }; + response: any; + }; + "refresh-coin": { + request: { coinPub: string }; + response: any; }; "get-currencies": { request: { }; @@ -120,6 +128,10 @@ export interface MessageMap { request: { currencyRecord: types.CurrencyRecord }; response: void; }; + "get-exchanges": { + request: { }; + response: types.ExchangeRecord[]; + }; "get-reserves": { request: { exchangeBaseUrl: string }; response: types.ReserveRecord[]; -- cgit v1.2.3