diff options
author | Florian Dold <florian@dold.me> | 2023-01-25 18:49:00 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-25 18:49:00 +0100 |
commit | c57ba4c0cea133059ac30eae3c7e527886240059 (patch) | |
tree | 9028ccde2bbd990b00449b9bb14c77e2b4732dcc /packages/taler-util | |
parent | 3aa077e0975128b66ade8866ad8227e3666a1b13 (diff) |
wallet-cli: daemonized wallet MVP
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 50cb50f30..b7a51de9e 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -109,11 +109,11 @@ export interface GetBalanceDetailRequest { currency: string; } -export const codecForGetBalanceDetailRequest = (): Codec<GetBalanceDetailRequest> => - buildCodecForObject<GetBalanceDetailRequest>() - .property("currency", codecForString()) - .build("GetBalanceDetailRequest"); - +export const codecForGetBalanceDetailRequest = + (): Codec<GetBalanceDetailRequest> => + buildCodecForObject<GetBalanceDetailRequest>() + .property("currency", codecForString()) + .build("GetBalanceDetailRequest"); export interface Balance { available: AmountString; @@ -225,11 +225,11 @@ export interface CoinDumpJson { withdrawal_reserve_pub: string | undefined; coin_status: CoinStatus; spend_allocation: - | { - id: string; - amount: string; - } - | undefined; + | { + id: string; + amount: string; + } + | undefined; /** * Information about the age restriction */ @@ -1430,9 +1430,14 @@ export const codecForConfirmPayRequest = (): Codec<ConfirmPayRequest> => .property("forcedCoinSel", codecForAny()) .build("ConfirmPay"); +export interface CoreApiRequestEnvelope { + id: string; + operation: string; + args: unknown; +} export type CoreApiResponse = CoreApiResponseSuccess | CoreApiResponseError; -export type CoreApiEnvelope = CoreApiResponse | CoreApiNotification; +export type CoreApiMessageEnvelope = CoreApiResponse | CoreApiNotification; export interface CoreApiNotification { type: "notification"; @@ -1802,7 +1807,6 @@ export const codecForUserAttentionsRequest = (): Codec<UserAttentionsRequest> => ) .build("UserAttentionsRequest"); - export interface UserAttentionsRequest { priority?: AttentionPriority; } |