From 019486789b0b7d7c043619129b0c8cfaef54007f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 18 Mar 2020 16:47:10 +0530 Subject: make types nicer --- core/api-exchange.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/api-exchange.rst b/core/api-exchange.rst index 06130e55..0b039d38 100644 --- a/core/api-exchange.rst +++ b/core/api-exchange.rst @@ -1110,16 +1110,18 @@ in using this API. .. ts:def:: RecoupWithdrawalConfirmation - // type of response provided if refreshed was false. interface RecoupWithdrawalConfirmation { + // Tag to distinguish the RecoupConfirmation response type + refreshed: false; // public key of the reserve that will receive the recoup, reserve_pub: EddsaPublicKey; } .. ts:def:: RecoupRefreshConfirmation - // type of response provided if refreshed was true. interface RecoupRefreshConfirmation { + // Tag to distinguish the RecoupConfirmation response type + refreshed: true; // public key of the old coin that will receive the recoup old_coin_pub: EddsaPublicKey; } -- cgit v1.2.3