summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-07 13:49:05 +0100
committerFlorian Dold <florian@dold.me>2024-02-07 13:49:05 +0100
commit56f4b81f9cc1ebf93aaf5b686003530bc9af24e3 (patch)
treed84963c018bf1b66e6997a015e8b93635165ce5c /packages/taler-wallet-core/src
parentff13acded0f68c66577eab96afb7f5242197b540 (diff)
downloadwallet-core-56f4b81f9cc1ebf93aaf5b686003530bc9af24e3.tar.gz
wallet-core-56f4b81f9cc1ebf93aaf5b686003530bc9af24e3.tar.bz2
wallet-core-56f4b81f9cc1ebf93aaf5b686003530bc9af24e3.zip
remove rewards
Some remains are kept to not break old wallets
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts24
-rw-r--r--packages/taler-wallet-core/src/wallet.ts12
2 files changed, 0 insertions, 36 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index 38b944475..cdde2ee62 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -206,8 +206,6 @@ export enum WalletApiOperation {
DumpCoins = "dumpCoins",
SetCoinSuspended = "setCoinSuspended",
ForceRefresh = "forceRefresh",
- PrepareReward = "prepareReward",
- AcceptReward = "acceptReward",
ExportBackup = "exportBackup",
AddBackupProvider = "addBackupProvider",
RemoveBackupProvider = "removeBackupProvider",
@@ -611,26 +609,6 @@ export type RemoveGlobalCurrencyAuditorOp = {
response: EmptyObject;
};
-// group: Rewards
-
-/**
- * Query and store information about a reward.
- */
-export type PrepareTipOp = {
- op: WalletApiOperation.PrepareReward;
- request: PrepareRewardRequest;
- response: PrepareRewardResult;
-};
-
-/**
- * Accept a reward.
- */
-export type AcceptTipOp = {
- op: WalletApiOperation.AcceptReward;
- request: AcceptRewardRequest;
- response: AcceptTipResponse;
-};
-
// group: Exchange Management
/**
@@ -1219,8 +1197,6 @@ export type WalletOperations = {
[WalletApiOperation.ForceRefresh]: ForceRefreshOp;
[WalletApiOperation.DeleteTransaction]: DeleteTransactionOp;
[WalletApiOperation.RetryTransaction]: RetryTransactionOp;
- [WalletApiOperation.PrepareReward]: PrepareTipOp;
- [WalletApiOperation.AcceptReward]: AcceptTipOp;
[WalletApiOperation.StartRefundQueryForUri]: StartRefundQueryForUriOp;
[WalletApiOperation.StartRefundQuery]: StartRefundQueryOp;
[WalletApiOperation.GetWithdrawalDetailsForAmount]: GetWithdrawalDetailsForAmountOp;
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 28523654b..0b7229cf3 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1171,10 +1171,6 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
const req = codecForForceRefreshRequest().decode(payload);
return await forceRefresh(ws, req);
}
- case WalletApiOperation.PrepareReward: {
- const req = codecForPrepareRewardRequest().decode(payload);
- return await prepareReward(ws, req.talerRewardUri);
- }
case WalletApiOperation.StartRefundQueryForUri: {
const req = codecForPrepareRefundRequest().decode(payload);
return await startRefundQueryForUri(ws, req.talerRefundUri);
@@ -1191,14 +1187,6 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
await startQueryRefund(ws, txIdParsed.proposalId);
return {};
}
- case WalletApiOperation.AcceptReward: {
- const req = codecForAcceptTipRequest().decode(payload);
- return await acceptTipBackwardCompat(
- ws,
- req.walletRewardId,
- req.transactionId,
- );
- }
case WalletApiOperation.AddBackupProvider: {
const req = codecForAddBackupProviderRequest().decode(payload);
return await addBackupProvider(ws, req);