diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-14 01:40:50 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-14 01:40:50 -0300 |
commit | 53998741a6f280c5c56573c2db6ffd35ce5c34d9 (patch) | |
tree | 5425164817dc59c5a6de24cac2d04196522e5a89 /packages/taler-wallet-core/src | |
parent | 592ecda944bf5b32e86f6c42ee8e1f17d9c86451 (diff) | |
download | wallet-core-53998741a6f280c5c56573c2db6ffd35ce5c34d9.tar.gz wallet-core-53998741a6f280c5c56573c2db6ffd35ce5c34d9.tar.bz2 wallet-core-53998741a6f280c5c56573c2db6ffd35ce5c34d9.zip |
breaking api: currency spec as the doc mention
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/versions.ts | 15 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 24 |
2 files changed, 26 insertions, 13 deletions
diff --git a/packages/taler-wallet-core/src/versions.ts b/packages/taler-wallet-core/src/versions.ts index e46c7ebe1..8e0e5561b 100644 --- a/packages/taler-wallet-core/src/versions.ts +++ b/packages/taler-wallet-core/src/versions.ts @@ -40,4 +40,17 @@ export const WALLET_BANK_INTEGRATION_PROTOCOL_VERSION = "0:0:0"; * Will be replaced with the value from package.json in a * post-compilation step (inside lib/). */ -export const WALLET_CORE_IMPLEMENTATION_VERSION = "0:0:0"; +export const WALLET_CORE_IMPLEMENTATION_VERSION = "1:0:0"; + +/** + * Libtool rules: + * + * If the library source code has changed at all since the last update, + * then increment revision (‘c:r:a’ becomes ‘c:r+1:a’). + * If any interfaces have been added, removed, or changed since the last + * update, increment current, and set revision to 0. + * If any interfaces have been added since the last public release, then + * increment age. + * If any interfaces have been removed or changed since the last public + * release, then set age to 0. + */
\ No newline at end of file diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 571bf07ee..a8c2895f8 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -927,9 +927,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } @@ -1436,9 +1436,9 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( currencySpecification: { decimal_separator: ",", name: "Kudos (Taler Demonstrator)", - fractional_input_digits: 2, - fractional_normal_digits: 2, - fractional_trailing_zero_digits: 2, + num_fractional_input_digits: 2, + num_fractional_normal_digits: 2, + num_fractional_trailing_zero_digits: 2, is_currency_name_leading: true, alt_unit_names: { "0": "ク", @@ -1451,9 +1451,9 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( currencySpecification: { decimal_separator: ",", name: "Test (Taler Unstable Demonstrator)", - fractional_input_digits: 0, - fractional_normal_digits: 0, - fractional_trailing_zero_digits: 0, + num_fractional_input_digits: 0, + num_fractional_normal_digits: 0, + num_fractional_trailing_zero_digits: 0, is_currency_name_leading: false, alt_unit_names: {}, }, @@ -1464,9 +1464,9 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( currencySpecification: { decimal_separator: ",", name: "Unknown", - fractional_input_digits: 2, - fractional_normal_digits: 2, - fractional_trailing_zero_digits: 2, + num_fractional_input_digits: 2, + num_fractional_normal_digits: 2, + num_fractional_trailing_zero_digits: 2, is_currency_name_leading: true, alt_unit_names: {}, }, |