Skip to content

Eason/bugfix #34

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

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Eason/bugfix #34

wants to merge 33 commits into from

Conversation

sdqede
Copy link

@sdqede sdqede commented Jun 23, 2025

upgrade chain-registry to 2.0
all functionalities works

@marslavish marslavish self-requested a review June 27, 2025 05:30
@@ -1,10 +1,21 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.formatOnSave": true,
Copy link
Author

Choose a reason for hiding this comment

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

enabled formatOnSave

boxShadow={`0px 4px 20px 0px rgba(${
theme === 'light' ? '0,0,0' : '128,128,128'
}, 0.1)`}
boxShadow={`0px 4px 20px 0px rgba(${theme === 'light' ? '0,0,0' : '128,128,128'
Copy link
Contributor

Choose a reason for hiding this comment

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

fix format

@@ -95,7 +95,7 @@ export const SelectAssetItem = ({
>
<PopoverTrigger>
<SelectButton
onClick={() => {}}
onClick={() => { }}
Copy link
Contributor

Choose a reason for hiding this comment

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

fix format

@@ -86,7 +86,7 @@ export function Voting({ chainName }: VotingProps) {
};
});
break;
} catch (e) {}
} catch (e) { }
Copy link
Contributor

Choose a reason for hiding this comment

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

fix format

</Box>
);
})}
let tally = proposal.finalTallyResult;
Copy link
Contributor

Choose a reason for hiding this comment

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

fix format

@@ -33,7 +33,8 @@ export const useStarshipChains = () => {

const assets = (await Promise.all(
chains.map((chain) =>
fetcher<AssetList>(`${baseUrl}/chains/${chain.chain_id}/assets`)
// @ts-ignore
fetcher<AssetList>(`${baseUrl}/chains/${chain.chain_id}/assets`) // if use chainId, got error: Cannot read properties of undefined (reading 'chainName') at const { connect, disconnect, address, wallet } = useChain(selectedChain)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove or simplify comments

@@ -77,8 +104,15 @@ export const useChainUtils = (chainName: string) => {
};

const getExponentByDenom = (denom: CoinDenom): Exponent => {
// Special handling for hyperweb native token
if (denom === 'uhyper') {
Copy link
Contributor

Choose a reason for hiding this comment

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

no hard-coded values

@@ -98,24 +132,39 @@ export const useChainUtils = (chainName: string) => {
};

const getChainName = (ibcDenom: CoinDenom) => {
// Special handling for hyperweb native token
if (ibcDenom === 'uhyper' && chainName === 'hyperweb') {
Copy link
Contributor

Choose a reason for hiding this comment

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

no hard coded values

const signingClient = await getSigningJsdClient({
rpcEndpoint: rpcEndpoint!,
signer: wallet.getOfflineSignerDirect(chain.chainId ?? ''),
if (!rpcEndpoint) {
Copy link
Contributor

Choose a reason for hiding this comment

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

???

arg,
});
return response;

Copy link
Contributor

Choose a reason for hiding this comment

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

???

@@ -99,7 +99,7 @@ const OverviewTransferWrapper = (
const toastHandlers = useToastHandlers();
const { data: signingClient } = useSigningClient(sourceChainName);
const { mutate: transfer, isLoading } = useTransfer({
clientResolver: signingClient,
clientResolver: signingClient as any,
Copy link
Contributor

Choose a reason for hiding this comment

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

no any

@yyyyaaa
Copy link
Contributor

yyyyaaa commented Jul 14, 2025

I agree with Luca's reviews here, we should strive for strict type safe code unless the interfaces are unknown or can't be patched due to external packages. No any or hard-coded values plz

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