gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (803d1bf7a -> c8b93a37b)


From: gnunet
Subject: [taler-wallet-core] branch master updated (803d1bf7a -> c8b93a37b)
Date: Mon, 20 Feb 2023 01:54:39 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from 803d1bf7a wallet-core: rename ops with support for old names
     new ac9dc1845 -rename
     new dcbdddc32 -rename
     new c8b93a37b -rename

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-util/src/wallet-types.ts                       |  2 +-
 packages/taler-wallet-core/src/wallet.ts                      |  2 +-
 .../taler-wallet-webextension/src/cta/InvoiceCreate/state.ts  |  4 ++--
 .../taler-wallet-webextension/src/cta/InvoicePay/state.ts     |  4 ++--
 .../taler-wallet-webextension/src/cta/TransferCreate/state.ts | 11 ++++-------
 .../taler-wallet-webextension/src/cta/TransferPickup/state.ts |  4 ++--
 6 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/packages/taler-util/src/wallet-types.ts 
b/packages/taler-util/src/wallet-types.ts
index 86db8bdcc..e89d143c8 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -2129,7 +2129,7 @@ export interface AcceptPeerPullPaymentResponse {
   transactionId: string;
 }
 
-export const codecForAcceptPeerPushPaymentRequest =
+export const codecForConfirmPeerPushPaymentRequest =
   (): Codec<ConfirmPeerPushCreditRequest> =>
     buildCodecForObject<ConfirmPeerPushCreditRequest>()
       .property("peerPushPaymentIncomingId", codecForString())
diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index 4b979c861..4f037eade 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -30,7 +30,7 @@ import {
   codecForAcceptExchangeTosRequest,
   codecForAcceptManualWithdrawalRequet,
   codecForAcceptPeerPullPaymentRequest,
-  codecForAcceptPeerPushPaymentRequest as 
codecForConfirmPeerPushPaymentRequest,
+  codecForConfirmPeerPushPaymentRequest,
   codecForAcceptTipRequest,
   codecForAddExchangeRequest,
   codecForAddKnownBankAccounts,
diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts 
b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
index 670a67599..73cb61b52 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts
@@ -83,7 +83,7 @@ export function useComponentState({
 
     const hook = useAsyncAsHook(async () => {
       const resp = await api.wallet.call(
-        WalletApiOperation.PreparePeerPullPayment,
+        WalletApiOperation.CheckPeerPullCredit,
         {
           amount: amountStr,
           exchangeBaseUrl: exchange.exchangeBaseUrl,
@@ -143,7 +143,7 @@ export function useComponentState({
       if (!subject || !purse_expiration) return;
 
       const resp = await api.wallet.call(
-        WalletApiOperation.InitiatePeerPullPayment,
+        WalletApiOperation.InitiatePeerPullCredit,
         {
           exchangeBaseUrl: exchange.exchangeBaseUrl,
           partialContractTerms: {
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts 
b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts
index 8459d5ca2..5ffc78ece 100644
--- a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts
@@ -40,7 +40,7 @@ export function useComponentState({
   const { i18n } = useTranslationContext();
   const { pushAlertOnError } = useAlertContext();
   const hook = useAsyncAsHook(async () => {
-    const p2p = await api.wallet.call(WalletApiOperation.CheckPeerPullPayment, 
{
+    const p2p = await api.wallet.call(WalletApiOperation.PreparePeerPullDebit, 
{
       talerUri: talerPayPullUri,
     });
     const balance = await api.wallet.call(WalletApiOperation.GetBalances, {});
@@ -144,7 +144,7 @@ export function useComponentState({
 
   async function accept(): Promise<void> {
     const resp = await api.wallet.call(
-      WalletApiOperation.AcceptPeerPullPayment,
+      WalletApiOperation.ConfirmPeerPullDebit,
       {
         peerPullPaymentIncomingId,
       },
diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts 
b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts
index 24eead099..c45e495d9 100644
--- a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts
@@ -38,12 +38,9 @@ export function useComponentState({
   const [timestamp, setTimestamp] = useState<string | undefined>();
 
   const hook = useAsyncAsHook(async () => {
-    const resp = await api.wallet.call(
-      WalletApiOperation.PreparePeerPushPayment,
-      {
-        amount: amountStr,
-      },
-    );
+    const resp = await api.wallet.call(WalletApiOperation.CheckPeerPushDebit, {
+      amount: amountStr,
+    });
     return resp;
   });
 
@@ -98,7 +95,7 @@ export function useComponentState({
   async function accept(): Promise<void> {
     if (!subject || !purse_expiration) return;
     const resp = await api.wallet.call(
-      WalletApiOperation.InitiatePeerPushPayment,
+      WalletApiOperation.InitiatePeerPushDebit,
       {
         partialContractTerms: {
           summary: subject,
diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts 
b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts
index 3c7b6cd4c..0a781746f 100644
--- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts
@@ -35,7 +35,7 @@ export function useComponentState({
   const { pushAlertOnError } = useAlertContext();
   const { i18n } = useTranslationContext();
   const hook = useAsyncAsHook(async () => {
-    return await api.wallet.call(WalletApiOperation.CheckPeerPushPayment, {
+    return await api.wallet.call(WalletApiOperation.PreparePeerPushCredit, {
       talerUri: talerPayPushUri,
     });
   }, []);
@@ -71,7 +71,7 @@ export function useComponentState({
 
   async function accept(): Promise<void> {
     const resp = await api.wallet.call(
-      WalletApiOperation.AcceptPeerPushPayment,
+      WalletApiOperation.ConfirmPeerPushCredit,
       {
         peerPushPaymentIncomingId,
       },

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]