Skip to content

Commit

Permalink
fix: uniported
Browse files Browse the repository at this point in the history
  • Loading branch information
qperrot committed Dec 12, 2024
1 parent efdf4d7 commit 3d6d2a5
Showing 1 changed file with 32 additions and 27 deletions.
59 changes: 32 additions & 27 deletions libs/ledger-live-common/.unimportedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@
"src/wallet-api/version.ts",
"src/errors/transactionBroadcastErrors.ts"
],
"extensions": [".ts", ".js", ".jsx", ".tsx"],
"extensions": [
".ts",
".js",
".jsx",
".tsx"
],
"ignorePatterns": [
"**/node_modules/**",
"**/__tests__/**",
Expand All @@ -298,12 +303,16 @@
"**/fixtures/**"
],
"ignoreUnimported": [
"src/account/typeGuards.ts",
"src/braze/anonymousUsers.ts",
"src/config/sharedConfig.ts",
"src/consoleWarnExpectToEqual.native.ts",
"src/consoleWarnExpectToEqual.ts",
"src/device",
"src/device/hooks/useLatestFirmware.ts",
"src/device/use-cases/appDataBackup/deleteAppData.ts",
"src/device/use-cases/appDataBackup/deleteAppDataUseCase.ts",
"src/device/use-cases/appDataBackup/deleteAppDataUseCaseDI.ts",
"src/device/use-cases/isDeviceLocalizationSupported.ts",
"src/device/use-cases/isEditDeviceNameSupported.ts",
"src/device/use-cases/isSyncOnboardingSupported.ts",
Expand All @@ -312,13 +321,13 @@
"src/deviceSDK/commands/getAppAndVersion.ts",
"src/deviceSDK/tasks/genuineCheck.ts",
"src/e2e/enum/Account.ts",
"src/e2e/enum/Nft.ts",
"src/e2e/enum/OperationType.ts",
"src/e2e/enum/AccountType.ts",
"src/e2e/enum/AppInfos.ts",
"src/e2e/enum/Currency.ts",
"src/e2e/enum/DeviceLabels.ts",
"src/e2e/enum/Fee.ts",
"src/e2e/enum/Nft.ts",
"src/e2e/enum/OperationType.ts",
"src/e2e/enum/Swap.ts",
"src/exchange/swap/const/blockchain.ts",
"src/families/cardano/logic.ts",
Expand All @@ -328,31 +337,27 @@
"src/families/internet_computer/utils.ts",
"src/families/stellar/bridge/logic.ts",
"src/families/stellar/logic.ts",
"src/families/tezos/logic.ts",
"src/families/tezos/react.ts",
"src/families/ton/types.ts",
"src/hw/actions/uninstallAllApps.ts",
"src/hw/getBitcoinLikeInfo.ts",
"src/index.ts",
"src/jest.d.ts",
"src/market/api/index.ts",
"src/market/utils/types.ts",
"src/market/hooks/useMarketDataProvider.ts",
"src/market/hooks/useMarketPerformers.ts",
"src/market/utils/currencyFormatter.ts",
"src/market/utils/index.ts",
"src/market/utils/queryKeys.ts",
"src/market/utils/timers.ts",
"src/market/utils/currencyFormatter.ts",
"src/market/hooks/useMarketDataProvider.ts",
"src/market/hooks/useMarketPerformers.ts",
"src/market/utils/types.ts",
"src/notifications/AnnouncementProvider/helpers.ts",
"src/reactNativeSvg.d.ts",
"src/rxjs/operators/throwIf.ts",
"src/walletSync/getEnvironmentParams.ts",
"src/device/use-cases/appDataBackup/deleteAppData.ts",
"src/device/use-cases/appDataBackup/deleteAppDataUseCase.ts",
"src/device/use-cases/appDataBackup/deleteAppDataUseCaseDI.ts",
"src/account/typeGuards.ts"
"src/walletSync/getEnvironmentParams.ts"
],
"ignoreUnused": [
"@dfinity/agent",
"@ledgerhq/hw-transport-mocker",
"@tanstack/react-query",
"@types/bchaddrjs",
Expand Down Expand Up @@ -390,20 +395,30 @@
"./RCTAlertManager",
"./RCTNetworking",
"./legacySendAccessibilityEvent",
"@noble/curves/ed25519",
"@noble/curves/secp256k1",
"@noble/hashes/sha256",
"@noble/hashes/sha3",
"@react-native/assets-registry/path-support",
"@react-native/assets-registry/registry",
"@react-native/normalize-colors",
"@react-native/virtualized-lists",
"@solana/buffer-layout",
"abort-controller/dist/abort-controller",
"anser",
"base64-js",
"bigint-buffer",
"bn.js",
"borsh",
"css-select",
"css-tree",
"deprecated-react-native-prop-types",
"event-target-shim",
"hoist-non-react-statics",
"jayson/lib/client/browser",
"memoize-one",
"metro-runtime/src/modules/HMRClient",
"node-fetch",
"nullthrows",
"pretty-format",
"promise/setimmediate/es6-extensions",
Expand All @@ -415,21 +430,11 @@
"react-refresh/runtime",
"regenerator-runtime",
"regenerator-runtime/runtime",
"rpc-websockets",
"scheduler",
"stacktrace-parser",
"superstruct",
"use-sync-external-store/shim",
"whatwg-fetch",
"@noble/curves/ed25519",
"@noble/hashes/sha256",
"@noble/hashes/sha3",
"@noble/curves/secp256k1",
"@solana/buffer-layout",
"bn.js",
"borsh",
"bigint-buffer",
"jayson/lib/client/browser",
"node-fetch",
"rpc-websockets",
"superstruct"
"whatwg-fetch"
]
}
}

1 comment on commit 3d6d2a5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ❌ 2 txs ($6.46) ⏲ 2min 12s

❌ 1 specs have problems: crypto_org

What is the bot and how does it work? Everything is documented here!

❌ 2 mutation errors
necessary accounts resynced in 0.20ms
▬ CronosPOSChain 2.18.0 on nanoS 2.1.0
→ FROM undefined: 17.3755 CRO (0ops) (cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra on 44'/394'/0'/0/0) #0 js:2:crypto_org:cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra: (! sum of ops 0 CRO) 17.37556309 CRO spendable. 

max spendable ~17.3755
★ using mutation 'send max'
→ TO undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
✔️ transaction 
SEND MAX
TO cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h

with fees=0.00002876
STATUS (466ms)
  amount: 17.37553433 CRO
  estimated fees: 0.00002876 CRO
  total spent: 17.37556309 CRO
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Please","x":48,"y":-1,"w":80,"h":11}
{"text":"review","x":47,"y":10,"w":81,"h":11}
(totally spent 60.5s – ends at 2024-12-12T11:48:25.711Z)
necessary accounts resynced in 0.13ms
▬ CronosPOSChain 2.18.0 on nanoS 2.1.0
→ FROM undefined: 17.3755 CRO (0ops) (cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd on 44'/394'/3'/0/0) #3 js:2:crypto_org:cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd: (! sum of ops 0 CRO) 17.37551309 CRO spendable. 

max spendable ~17.3754
★ using mutation 'send some'
→ TO undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
✔️ transaction 
SEND  9.65582393 CRO
TO cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h

with fees=0.00002878
STATUS (432ms)
  amount: 9.65582393 CRO
  estimated fees: 0.00002878 CRO
  total spent: 9.65585271 CRO
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Please","x":48,"y":-1,"w":80,"h":11}
{"text":"review","x":47,"y":10,"w":81,"h":11}
(totally spent 60.5s – ends at 2024-12-12T11:48:25.713Z)
Details of the 2 mutations

Spec crypto_org (7)

Spec crypto_org found 7 Cronos POS Chain accounts (preload: 317ms). Will use CronosPOSChain 2.18.0 on nanoS 2.1.0
undefined: 17.3755 CRO (0ops) (cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra on 44'/394'/0'/0/0) #0 js:2:crypto_org:cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra:
undefined: 0 CRO (0ops) (cro1h95uwv25le8rd0fl80qyp0438kn57xl4cp64dl on 44'/394'/1'/0/0) #1 js:2:crypto_org:cro1h95uwv25le8rd0fl80qyp0438kn57xl4cp64dl:
undefined: 0 CRO (0ops) (cro1uxjd9r5yz6muu5fzhf8gj9dzvevpyzcc822je2 on 44'/394'/2'/0/0) #2 js:2:crypto_org:cro1uxjd9r5yz6muu5fzhf8gj9dzvevpyzcc822je2:
undefined: 17.3755 CRO (0ops) (cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd on 44'/394'/3'/0/0) #3 js:2:crypto_org:cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd:
undefined: 0 CRO (0ops) (cro17dv59jpz5tfk54sj9cdwqzjj8e22hp7g5a4v4l on 44'/394'/4'/0/0) #4 js:2:crypto_org:cro17dv59jpz5tfk54sj9cdwqzjj8e22hp7g5a4v4l:
undefined: 0 CRO (0ops) (cro1zfhcf2htapdkjlw4ffqzce7yfe6mhscd2su05p on 44'/394'/5'/0/0) #5 js:2:crypto_org:cro1zfhcf2htapdkjlw4ffqzce7yfe6mhscd2su05p:
undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
necessary accounts resynced in 0.20ms
▬ CronosPOSChain 2.18.0 on nanoS 2.1.0
→ FROM undefined: 17.3755 CRO (0ops) (cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra on 44'/394'/0'/0/0) #0 js:2:crypto_org:cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra: (! sum of ops 0 CRO) 17.37556309 CRO spendable. 

max spendable ~17.3755
★ using mutation 'send max'
→ TO undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
✔️ transaction 
SEND MAX
TO cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h

with fees=0.00002876
STATUS (466ms)
  amount: 17.37553433 CRO
  estimated fees: 0.00002876 CRO
  total spent: 17.37556309 CRO
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Please","x":48,"y":-1,"w":80,"h":11}
{"text":"review","x":47,"y":10,"w":81,"h":11}
(totally spent 60.5s – ends at 2024-12-12T11:48:25.716Z)
necessary accounts resynced in 0.13ms
▬ CronosPOSChain 2.18.0 on nanoS 2.1.0
→ FROM undefined: 17.3755 CRO (0ops) (cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd on 44'/394'/3'/0/0) #3 js:2:crypto_org:cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd: (! sum of ops 0 CRO) 17.37551309 CRO spendable. 

max spendable ~17.3754
★ using mutation 'send some'
→ TO undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
✔️ transaction 
SEND  9.65582393 CRO
TO cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h

with fees=0.00002878
STATUS (432ms)
  amount: 9.65582393 CRO
  estimated fees: 0.00002878 CRO
  total spent: 9.65585271 CRO
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"Please","x":48,"y":-1,"w":80,"h":11}
{"text":"review","x":47,"y":10,"w":81,"h":11}
(totally spent 60.5s – ends at 2024-12-12T11:48:25.718Z)

Details of the 4 uncovered mutations

Spec crypto_org (4)

  • delegate new validators: can delegate (2), only one out of 2 accounts is not going to delegate (3)
  • undelegate: balance is too low (5)
  • redelegate: balance is too low for redelegate (5)
  • claim rewards: balance is too low for claim rewards (5)
Portfolio ($6.46) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
crypto_org (7) 0 ops , 34.751 CRO ($6.46) cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra
undefined: 17.3755 CRO (0ops) (cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra on 44'/394'/0'/0/0) #0 js:2:crypto_org:cro14zpaxs3msrdnx5ch3m3y3yue0wwwevrf2hmwra:
undefined: 0 CRO (0ops) (cro1h95uwv25le8rd0fl80qyp0438kn57xl4cp64dl on 44'/394'/1'/0/0) #1 js:2:crypto_org:cro1h95uwv25le8rd0fl80qyp0438kn57xl4cp64dl:
undefined: 0 CRO (0ops) (cro1uxjd9r5yz6muu5fzhf8gj9dzvevpyzcc822je2 on 44'/394'/2'/0/0) #2 js:2:crypto_org:cro1uxjd9r5yz6muu5fzhf8gj9dzvevpyzcc822je2:
undefined: 17.3755 CRO (0ops) (cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd on 44'/394'/3'/0/0) #3 js:2:crypto_org:cro1w58ly7vcu7a57pfa25zt3kdvt89z38690aedcd:
undefined: 0 CRO (0ops) (cro17dv59jpz5tfk54sj9cdwqzjj8e22hp7g5a4v4l on 44'/394'/4'/0/0) #4 js:2:crypto_org:cro17dv59jpz5tfk54sj9cdwqzjj8e22hp7g5a4v4l:
undefined: 0 CRO (0ops) (cro1zfhcf2htapdkjlw4ffqzce7yfe6mhscd2su05p on 44'/394'/5'/0/0) #5 js:2:crypto_org:cro1zfhcf2htapdkjlw4ffqzce7yfe6mhscd2su05p:
undefined: 0 CRO (0ops) (cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h on 44'/394'/6'/0/0) #6 js:2:crypto_org:cro1gfrsr7eerpuc0zpl4j6wp3aj55gqahtls2hj9h:
Performance ⏲ 2min 12s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 317ms 3.4s 1.12ms 898ms N/A N/A N/A N/A
crypto_org (6) 317ms 3.4s 1.12ms 898ms N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.