diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-27 03:09:29 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-27 03:09:29 +0200 |
commit | 82b5754e157a1a3b22afe48c8366c76525eb91e3 (patch) | |
tree | c50afc6bac7535481a73ebc29049e393444f7edc /src/types.ts | |
parent | 68e44e0e80635b00333ef2fcbb0ad937581344ba (diff) | |
download | wallet-core-82b5754e157a1a3b22afe48c8366c76525eb91e3.tar.xz |
download, store and check signatures for wire fees
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index e0baa169b..c6111bd09 100644 --- a/src/types.ts +++ b/src/types.ts @@ -474,6 +474,9 @@ export class Contract { @Checkable.String H_wire: string; + @Checkable.String + wire_method: string; + @Checkable.Optional(Checkable.String) summary?: string; @@ -535,6 +538,20 @@ export class Contract { } +export interface WireFee { + wireFee: AmountJson; + closingFee: AmountJson; + startStamp: number; + endStamp: number; + sig: string; +} + +export interface ExchangeWireFeesRecord { + exchangeBaseUrl: string; + feesForType: { [type: string]: WireFee[] }; +} + + export type PayCoinInfo = Array<{ updatedCoin: CoinRecord, sig: CoinPaySig }>; |