@ledgerhq/coin-framework 0.5.3 → 0.6.0-next.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/lib/account/helpers.test.js +2 -2
- package/lib/account/helpers.test.js.map +1 -1
- package/lib/bot/specs.d.ts +3 -30
- package/lib/bot/specs.d.ts.map +1 -1
- package/lib/bot/specs.js +3 -3
- package/lib/bot/specs.js.map +1 -1
- package/lib/bot/types.d.ts +38 -2
- package/lib/bot/types.d.ts.map +1 -1
- package/lib/mocks/helpers.js +1 -1
- package/lib/mocks/helpers.js.map +1 -1
- package/lib/operation.d.ts.map +1 -1
- package/lib/operation.js +5 -5
- package/lib/operation.js.map +1 -1
- package/lib/operation.test.js +4 -4
- package/lib/operation.test.js.map +1 -1
- package/lib-es/account/helpers.test.js +2 -2
- package/lib-es/account/helpers.test.js.map +1 -1
- package/lib-es/bot/specs.d.ts +3 -30
- package/lib-es/bot/specs.d.ts.map +1 -1
- package/lib-es/bot/specs.js +3 -3
- package/lib-es/bot/specs.js.map +1 -1
- package/lib-es/bot/types.d.ts +38 -2
- package/lib-es/bot/types.d.ts.map +1 -1
- package/lib-es/mocks/helpers.js +1 -1
- package/lib-es/mocks/helpers.js.map +1 -1
- package/lib-es/operation.d.ts.map +1 -1
- package/lib-es/operation.js +5 -5
- package/lib-es/operation.js.map +1 -1
- package/lib-es/operation.test.js +4 -4
- package/lib-es/operation.test.js.map +1 -1
- package/package.json +9 -7
- package/src/account/helpers.test.ts +2 -2
- package/src/bot/specs.ts +13 -38
- package/src/bot/types.ts +47 -2
- package/src/mocks/helpers.ts +1 -1
- package/src/operation.test.ts +4 -4
- package/src/operation.ts +6 -5
package/src/operation.ts
CHANGED
|
@@ -241,13 +241,14 @@ export const isAddressPoisoningOperation = (
|
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
export function isEditableOperation(account: AccountLike, operation: Operation): boolean {
|
|
244
|
-
let
|
|
244
|
+
let isEvmFamily = false;
|
|
245
245
|
if (account.type === "Account") {
|
|
246
|
-
|
|
246
|
+
isEvmFamily = account.currency.family === "evm";
|
|
247
247
|
} else if (account.type === "TokenAccount") {
|
|
248
|
-
|
|
248
|
+
isEvmFamily = account.token.parentCurrency.family === "evm";
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
|
|
251
|
+
return isEvmFamily && operation.blockHeight === null && !!operation.transactionRaw;
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
// return the oldest stuck pending operation and its corresponding account according to a eth account or a token subaccount. If no stuck pending operation is found, return undefined
|
|
@@ -265,7 +266,7 @@ export function getStuckAccountAndOperation(
|
|
|
265
266
|
let stuckParentAccount;
|
|
266
267
|
const mainAccount = getMainAccount(account, parentAccount);
|
|
267
268
|
|
|
268
|
-
const SUPPORTED_FAMILIES = ["
|
|
269
|
+
const SUPPORTED_FAMILIES = ["evm"];
|
|
269
270
|
|
|
270
271
|
if (!SUPPORTED_FAMILIES.includes(mainAccount.currency.family)) {
|
|
271
272
|
return undefined;
|