-
Notifications
You must be signed in to change notification settings - Fork 522
ModularChainInfo: branch for merge #1654
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
base: develop
Are you sure you want to change the base?
Conversation
…sic-updates ModularChainInfo 타입 수정 / stores, background 내부의 modularChainInfos 데이터 가공 시 분기
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking changes on ModularChainInfoImpl
packages/stores/src/chain/base.ts
Outdated
| } | ||
|
|
||
| get modularChainInfos(): ModularChainInfo[] { | ||
| console.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 여기 포함 이 파일의 console.log들은 의도적으로 남겨두신 걸까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트용으로 남겨뒀는데요! QA 후 머지되기 전 지우겠습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
콘솔로그 제거했습니다.
| const denomHelper = new DenomHelper(currency.coinMinimalDenom); | ||
| if (denomHelper.type === "erc20") { | ||
| // XXX: 얘는 구조상 waitFreshResponse()가 안되서 일단 쿼리가 끝인지 아닌지는 무시한다. | ||
| queryBalance.fetch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 기존 코드 같은데 로직이 잘 이해가 안되네요, 왜 동일한 query를 for문을 돌면서 반복 fetch 하는건지 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그러게요. queryBalance.getBalance(currency).fetch() 요렇게 가는게 의도가 아니었을지..? 정환님 확인 한번 해주셔요 @Thunnini
apps/extension/src/pages/earn/confirm-usdn-estimation/index.tsx
Outdated
Show resolved
Hide resolved
apps/extension/src/pages/main/token-detail/receive-modal/index.tsx
Outdated
Show resolved
Hide resolved
editaahn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kws1207 주신 코멘트들 확인했어요. 감사합니다! 반영 후에 핑 한번 더 드릴게요 👍
packages/stores/src/chain/base.ts
Outdated
| } | ||
|
|
||
| get modularChainInfos(): ModularChainInfo[] { | ||
| console.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트용으로 남겨뒀는데요! QA 후 머지되기 전 지우겠습니다
| const denomHelper = new DenomHelper(currency.coinMinimalDenom); | ||
| if (denomHelper.type === "erc20") { | ||
| // XXX: 얘는 구조상 waitFreshResponse()가 안되서 일단 쿼리가 끝인지 아닌지는 무시한다. | ||
| queryBalance.fetch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그러게요. queryBalance.getBalance(currency).fetch() 요렇게 가는게 의도가 아니었을지..? 정환님 확인 한번 해주셔요 @Thunnini
|
@kws1207 Sam님 코멘트 반영됐습니다. |
blacktoast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 잘못 한 걸수도 있는데
계정 처음 생성 하고 체인 선택할때 evm계열 체인이 선택이 안되는것 같아요
현재 배포 버전은 evm 계열이 선택이 되어 있긴합니다
editaahn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blacktoast @piatoss3612
두 분이 주신 피드백 반영했습니다. 감사합니다~! 078d35c
레또님이 발견해주신 누락된 분기도 처리했습니다. 16d6d9f
Linear KEPLR-1305
배경
multichain ecosystem에 맞춘 코드 베이스로 개선
진행 상태
예정 timeline
변경 사항 요약
ModularChainInfo타입 확장 codeevm추가 (as-is: EVM 체인도cosmos타입을 사용하고 있었음)isNative: 기존 ChainInfo 타입에서는 native 체인 여부를 알기 위해 embedded.embedded 또는 beta 필드 사용 -> ModularChainInfo에서는isNative라는 이름으로 통합logic 상 분리: EVM <> Cosmos
ModularChainInfoImpl확장 및 메서드 최적화 codepackages/stores/src/chain/base.tsChainInfo -> ModularChainInfo 사용부 legacy 전면 교체
getChain->getModularChainorgetModularChainInfoImplhasChain->hasModularChainormatchModuleschainInfos->modularChainInfoschainInfosInUI->modularChainInfosInUI분기가 필요한 경우는 “cosmos”, “evm”, “bitcoin” 등의 객체 존재 여부로 확인하시거나,
getModularChainInfoImpl(chainId).matchModule(“cosmos”)getModularChainInfoImpl(chainId).matchModules({ or: [“cosmos”, “evm”] })등을 사용해주세요.기타 참고사항
experimentalSuggestChain같은 method는 기존 legacy ChainInfo를 사용해야함packages/common추가 (convertModularChainInfoToChainInfo) codeuseGetAllNonNativeChain)History: 아래 PR들이 합쳐짐
ModularChainInfo 타입 수정 / stores, background 내부의 modularChainInfos 데이터 가공 시 분기 #1590
[Ext] cosmos <> evm 모듈 상세 로직 분기: Balance 조회 및 Custom token 관리 #1597
[Ext] cosmos <> evm 모듈 상세 로직 분기: 세부 기능 별 분기 #1606
add methods to
ModularChainInfoImpland refactor #1607replace legacy ChainInfo #1619
머지 충돌 해결 / 후속 빌드 애러 해결