diff options
author | Florian Dold <florian@dold.me> | 2023-12-13 19:31:30 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-13 19:31:37 +0100 |
commit | 7865b1cd5b9605d9a802d9d5016bc4aaeaa95fad (patch) | |
tree | c157cb7f81b757796ce48aeaed6db70a7d9abe8d /packages/taler-wallet-core/src | |
parent | cd1201ef6c737b007adf1c3c572b41d793f2296b (diff) | |
download | wallet-core-7865b1cd5b9605d9a802d9d5016bc4aaeaa95fad.tar.xz |
wallet-core: untangle version confusion for different bank APIs
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/versions.ts | 20 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 5 |
2 files changed, 22 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/versions.ts b/packages/taler-wallet-core/src/versions.ts index 5e72ad20a..023cbb1ff 100644 --- a/packages/taler-wallet-core/src/versions.ts +++ b/packages/taler-wallet-core/src/versions.ts @@ -29,18 +29,32 @@ export const WALLET_EXCHANGE_PROTOCOL_VERSION = "17:0:0"; export const WALLET_MERCHANT_PROTOCOL_VERSION = "5:0:1"; /** - * Protocol version spoken with the bank. + * Protocol version spoken with the bank (bank integration API). * * Uses libtool's current:revision:age versioning. */ -export const WALLET_BANK_INTEGRATION_PROTOCOL_VERSION = "2:0:0"; +export const WALLET_BANK_INTEGRATION_PROTOCOL_VERSION = "1:0:0"; + +/** + * Protocol version spoken with the bank (corebank API). + * + * Uses libtool's current:revision:age versioning. + */ +export const WALLET_COREBANK_API_PROTOCOL_VERSION = "2:0:0"; + +/** + * Protocol version spoken with the bank (conversion API). + * + * Uses libtool's current:revision:age versioning. + */ +export const WALLET_BANK_CONVERSION_API_PROTOCOL_VERSION = "2:0:0"; /** * Semver of the wallet-core API implementation. * Will be replaced with the value from package.json in a * post-compilation step (inside lib/). */ -export const WALLET_CORE_API_IMPLEMENTATION_VERSION = "2:0:1"; +export const WALLET_CORE_API_IMPLEMENTATION_VERSION = "3:0:2"; /** * Libtool rules: diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 86a80335e..da6ffa41f 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -309,7 +309,9 @@ import { } from "./util/query.js"; import { TimerAPI, TimerGroup } from "./util/timer.js"; import { + WALLET_BANK_CONVERSION_API_PROTOCOL_VERSION, WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, + WALLET_COREBANK_API_PROTOCOL_VERSION, WALLET_CORE_API_IMPLEMENTATION_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, WALLET_MERCHANT_PROTOCOL_VERSION, @@ -1524,6 +1526,9 @@ export function getVersion(ws: InternalWalletState): WalletCoreVersion { version: WALLET_CORE_API_IMPLEMENTATION_VERSION, exchange: WALLET_EXCHANGE_PROTOCOL_VERSION, merchant: WALLET_MERCHANT_PROTOCOL_VERSION, + bankConversionApiRange: WALLET_BANK_CONVERSION_API_PROTOCOL_VERSION, + bankIntegrationApiRange: WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, + corebankApiRange: WALLET_COREBANK_API_PROTOCOL_VERSION, bank: WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, devMode: false, }; |