edge-core-js 1.13.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -1
- package/android/src/main/assets/edge-core-js/edge-core.js +1 -1
- package/lib/client-side.js +1 -1
- package/lib/core/account/account-api.js +18 -17
- package/lib/core/account/account-init.js +2 -2
- package/lib/core/account/account-pixie.js +2 -13
- package/lib/core/account/custom-tokens.js +2 -2
- package/lib/core/account/lobby-api.js +1 -4
- package/lib/core/actions.js +0 -12
- package/lib/core/context/context-api.js +2 -46
- package/lib/core/currency/currency-selectors.js +5 -21
- package/lib/core/currency/wallet/currency-wallet-api.js +122 -94
- package/lib/core/currency/wallet/currency-wallet-callbacks.js +41 -10
- package/lib/core/currency/wallet/currency-wallet-cleaners.js +119 -55
- package/lib/core/currency/wallet/currency-wallet-export.js +17 -1
- package/lib/core/currency/wallet/currency-wallet-files.js +61 -56
- package/lib/core/currency/wallet/currency-wallet-pixie.js +3 -2
- package/lib/core/currency/wallet/currency-wallet-reducer.js +47 -46
- package/lib/core/currency/wallet/metadata.js +52 -0
- package/lib/core/login/recovery2.js +0 -12
- package/lib/core/login/splitting.js +12 -13
- package/lib/core/plugins/plugins-reducer.js +0 -5
- package/lib/core/plugins/plugins-selectors.js +2 -7
- package/lib/core/root-pixie.js +0 -2
- package/lib/core/root-reducer.js +0 -14
- package/lib/core/root.js +0 -7
- package/lib/core/swap/swap-api.js +1 -23
- package/lib/flow/error.js +25 -72
- package/lib/flow/server-cleaners.js +1 -18
- package/lib/flow/server-types.js +1 -7
- package/lib/flow/type-helpers.js +5 -5
- package/lib/flow/types.js +180 -187
- package/lib/node/index.js +549 -2298
- package/lib/node/index.mjs +0 -2
- package/lib/react-native.js +1 -1
- package/lib/types/error.js +20 -67
- package/lib/types/server-cleaners.js +0 -17
- package/lib/types/server-types.js +0 -6
- package/lib/types/type-helpers.js +3 -3
- package/lib/types/types.js +0 -7
- package/lib/util/asMap.js +54 -0
- package/lib/util/util.js +2 -25
- package/package.json +10 -10
- package/src/types/error.ts +25 -72
- package/src/types/server-cleaners.ts +1 -18
- package/src/types/server-types.ts +1 -7
- package/src/types/type-helpers.ts +5 -5
- package/src/types/types.ts +179 -186
- package/types.js +24 -92
- package/types.mjs +0 -2
- package/lib/core/exchange/exchange-api.js +0 -56
- package/lib/core/exchange/exchange-pixie.js +0 -660
- package/lib/core/exchange/exchange-reducer.js +0 -94
- package/lib/core/exchange/exchange-selectors.js +0 -139
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
# edge-core-js
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 2.0.0 (2024-01-04)
|
|
4
|
+
|
|
5
|
+
- added: `EdgeCurrencyWallet.saveTxAction` to add/edit `EdgeTransaction.savedAction`
|
|
6
|
+
- added: `EdgeTransaction.assetAction` & `EdgeSpendInfo.assetAction` for action info that is saved per token in a transaction.
|
|
7
|
+
- added: `EdgeTransaction.savedAction` & `EdgeSpendInfo.savedAction` as editable version of `chainAction`
|
|
8
|
+
- added: `EdgeTxActionFiat` action type for fiat buy/sells
|
|
9
|
+
- added: `EdgeTxActionTokenApproval` action type for token approval transactions
|
|
10
|
+
- changed: Extend `EdgeTxActionSwap` to fully replace `EdgeSwapData`
|
|
11
|
+
- changed: Make `EdgeCurrencyInfo.defaultSettings` and `EdgeCurrencyInfo.metaTokens` optional.
|
|
12
|
+
- changed: Rename `EdgeTransaction.action` to `chainAction`
|
|
13
|
+
- changed: Require `tokenId` to be null or string and eliminate `currencyCode` in `EdgeCurrencyWallet.getTransactions/getReceiveAddress`, `EdgeSpendInfo`, `EdgeSwapRequest`, `EdgeTxAction.EdgeAssetAmount`, `saveTxMetadata`
|
|
14
|
+
- removed: `EdgeAccount.rateCache` and related types, as well as the rate plugin concept.
|
|
15
|
+
- removed: `EdgeContext.deleteLocalAccount`
|
|
16
|
+
- removed: `EdgeContext.listUsernames`
|
|
17
|
+
- removed: `EdgeContext.pinLoginEnabled`
|
|
18
|
+
- removed: `EdgeCurrencyInfo.symbolImage` and `symbolImageDarkMono`.
|
|
19
|
+
- removed: `EdgeLoginRequest.displayImageUrl`
|
|
20
|
+
- removed: `listRecoveryQuestionChoices` and related types.
|
|
21
|
+
- removed: `validateMemo` methods and related types.
|
|
22
|
+
|
|
23
|
+
## 1.14.0 (2024-01-04)
|
|
24
|
+
|
|
25
|
+
- added: `EdgeCurrencyCodeOptions.tokenId`. This upgrades `getBalance`, `getNumTransactions`, and `getReceiveAddress`.
|
|
26
|
+
- added: `EdgeCurrencyEngineCallbacks.onTokenBalanceChanged`, which is thew new balance-update callback.
|
|
27
|
+
- added: `EdgeCurrencyWallet.balanceMap`, which reports balances by tokenId.
|
|
28
|
+
- added: `EdgeParsedUri.tokenId`
|
|
29
|
+
- added: `EdgeTokenId` type definition.
|
|
30
|
+
- added: `EdgeTransaction.tokenId`.
|
|
31
|
+
- added: Allow deleting metadata fields by passing `null` to `saveTxMetadata`.
|
|
32
|
+
- deprecated: `EdgeCurrencyEngineCallbacks.onBalanceChanged`. Use `onTokenBalanceChanged` instead.
|
|
33
|
+
- deprecated: `EdgeParsedUri.currencyCode`. Use `tokenId` instead.
|
|
34
|
+
- deprecated: `EdgeTransaction.currencyCode`. Use `tokenId` instead.
|
|
4
35
|
|
|
5
36
|
## 1.13.1 (2023-12-06)
|
|
6
37
|
|