Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Updated Networks #155

Merged
merged 11 commits into from
Jul 24, 2024
Merged

Feat: Updated Networks #155

merged 11 commits into from
Jul 24, 2024

Conversation

tuul-wq
Copy link
Contributor

@tuul-wq tuul-wq commented Jul 11, 2024

  • Installed effector packages, switched to lodash-es
  • Removed ChainRegistry
  • Used network-model from NovaSpektr to manage networks state with effector
  • Updated application with new api (from networkModel)
  • Altered network-model according to Telenova needs (don't save metadata in IndexedDB, removed api recreation on unintended disconnect & error)
  • Added global Telenova types (HexString, AccountId, Address etc.)
  • New UI component <AssetIcon />
  • Included in project chains_dev.json & chains_prod.json
  • Removed StrictMode

= Task =

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remix auto-generated file

Copy link

github-actions bot commented Jul 11, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 12.68% 873 / 6881
🔵 Statements 12.68% 873 / 6881
🔵 Functions 13.44% 25 / 186
🔵 Branches 26.66% 40 / 150
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
app/entry.client.tsx 0% 0% 0% 0% 1-8
app/entry.server.tsx 0% 0% 0% 0% 1-111
app/root.tsx 0% 0% 0% 0% 1-126
app/common/balances/BalanceProvider.tsx 0% 0% 0% 0% 1-174
app/common/balances/BalanceService.ts 0% 0% 0% 0% 1-63
app/common/extrinsicService/ExtrinsicBuilder.ts 0% 0% 0% 0% 1-67
app/common/extrinsicService/ExtrinsicService.ts 0% 0% 0% 0% 1-44
app/common/extrinsicService/useExtrinsic.tsx 0% 0% 0% 0% 1-118
app/common/extrinsicService/types/index.ts 0% 0% 0% 0% 1-60
app/common/network/network-model.ts 88.52% 92.59% 65.21% 88.52% 31-34, 63-66, 69-70, 81-82, 104-106, 108-110, 112-114, 125-130, 214-215, 217-221, 311, 330-336
app/common/network/network-utils.ts 66.66% 100% 100% 66.66% 9-13
app/common/network/types.ts 100% 100% 100% 100%
app/common/providers/contextProvider.tsx 0% 0% 0% 0% 1-47
app/common/queryService/QueryService.ts 0% 0% 0% 0% 1-80
app/common/telegram/bot-api.ts 0% 0% 0% 0% 1-40
app/common/telegram/index.ts 0% 0% 0% 0% 1-53
app/common/telegram/message-factory.ts 0% 0% 0% 0% 1-23
app/common/types/index.ts 100% 100% 100% 100%
app/common/utils/address.ts 23.21% 100% 0% 23.21% 13-33, 35-56
app/common/utils/arrays.ts 36.66% 100% 0% 36.66% 12-30
app/common/utils/assets.ts 28.81% 100% 0% 28.81% 8-13, 16-17, 20-21, 24-35, 38-50, 53-59
app/common/utils/balance.ts 29% 100% 0% 29% 28-29, 32-35, 39-81, 84-93, 96-113, 116-131
app/common/utils/constants.ts 100% 100% 100% 100%
app/common/utils/functions.ts 76.92% 100% 0% 76.92% 7-8, 16-17, 25-26
app/common/utils/gift.ts 32.85% 100% 0% 32.85% 19-31, 34-43, 46-58, 60-70
app/common/utils/index.tsx 100% 100% 100% 100%
app/common/utils/utility.ts 100% 100% 100% 100%
app/common/utils/hooks/index.ts 0% 0% 0% 0% 1-5
app/common/utils/hooks/useAssetHub.ts 0% 0% 0% 0% 1-52
app/common/utils/hooks/useGifts.ts 0% 0% 0% 0% 1-70
app/common/utils/hooks/useToggle.ts 0% 0% 0% 0% 1-16
app/common/wallet/store.ts 47.39% 75% 17.64% 47.39% 26-35, 37-39, 49-51, 82-92, 95-105, 108-109, 112-123, 126-131, 134-135, 142-152, 155-156, 159-164, 167-178, 181-182, 185-192
app/common/wallet/types.ts 100% 100% 100% 100%
app/components/index.ts 0% 0% 0% 0% 1-72
app/components/Assets/AssetBalance.tsx 0% 0% 0% 0% 1-33
app/components/Assets/AssetIcon.tsx 0% 0% 0% 0% 1-28
app/components/Assets/AssetsList.tsx 0% 0% 0% 0% 1-36
app/components/Modals/GiftModal.tsx 0% 0% 0% 0% 1-219
app/components/Plate/CreatedGiftPlate.tsx 0% 0% 0% 0% 1-52
app/routes/dashboard/index.tsx 0% 0% 0% 0% 1-150
app/routes/exchange/widget.$chainId.$assetId.tsx 0% 0% 0% 0% 1-104
app/routes/gifts/details.tsx 0% 0% 0% 0% 1-68
app/routes/transfer/direct/$chainId.$assetId/$address.confirmation.tsx 0% 0% 0% 0% 1-130
app/routes/transfer/gift/$chainId.$assetId/create.tsx 0% 0% 0% 0% 1-130
app/services/index.ts 100% 100% 100% 100%
app/services/network/chain-service.ts 44.23% 100% 0% 44.23% 15-19, 21-35, 42-44, 46-48, 50-52
app/services/network/metadata-service.ts 47.82% 100% 0% 47.82% 11-19, 21-23
app/services/network/provider-service.ts 71.42% 66.66% 66.66% 71.42% 19-21, 23-25, 54-67
Generated in workflow #160

@tuul-wq tuul-wq self-assigned this Jul 11, 2024
@tuul-wq tuul-wq marked this pull request as ready for review July 12, 2024 13:12
@tuul-wq tuul-wq requested a review from johnthecat July 12, 2024 13:12
@johnthecat johnthecat mentioned this pull request Jul 15, 2024
Copy link
Contributor

@sokolova-an sokolova-an left a comment

Choose a reason for hiding this comment

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

good work!

app/common/network/network-model.ts Show resolved Hide resolved
app/common/utils/chains.ts Outdated Show resolved Hide resolved
@tuul-wq tuul-wq changed the base branch from dev to feat/assets July 15, 2024 12:59
# Conflicts:
#	app/routes/dashboard/index.tsx
@tuul-wq tuul-wq merged commit 9714953 into feat/assets Jul 24, 2024
1 check passed
@tuul-wq tuul-wq deleted the feat/networks branch July 24, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants