From 473da82caa57c2e63cce9744d971ba74e41cd6a9 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 27 Jun 2024 12:56:49 +0000 Subject: [PATCH] acceleration estimate payment methods field --- .../accelerate-checkout/accelerate-checkout.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 3d720e757..2a7f0d067 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -9,6 +9,8 @@ import { Transaction } from '../../interfaces/electrs.interface'; import { MiningStats } from '../../services/mining.service'; import { StorageService } from '../../services/storage.service'; +export type PaymentMethod = 'balance' | 'bitcoin' | 'cashapp'; + export type AccelerationEstimate = { hasAccess: boolean; txSummary: TxSummary; @@ -19,7 +21,8 @@ export type AccelerationEstimate = { cost: number; mempoolBaseFee: number; vsizeFee: number; - pools: number[] + pools: number[]; + availablePaymentMethods: PaymentMethod[]; } export type TxSummary = { txid: string; // txid of the current transaction