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

hotfix build release #614

Merged
merged 3 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/stale-chefs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@skip-go/client': patch
'@skip-go/widget': patch
---

fix build
35 changes: 1 addition & 34 deletions packages/client/src/types/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,39 +444,6 @@ export type StargateTransferState =
| "STARGATE_TRANSFER_FAILED"


export type StargateTransferTransactionsJSON = {
send_tx: ChainTransactionJSON | null;
receive_tx: ChainTransactionJSON | null;
error_tx: ChainTransactionJSON | null;
};

export type StargateTransferTransactions = {
sendTx: ChainTransaction | null;
receiveTx: ChainTransaction | null;
errorTx: ChainTransaction | null;
};

export type StargateTransferInfoJSON = {
from_chain_id: string;
to_chain_id: string;
state: StargateTransferState;
txs: StargateTransferTransactionsJSON;
};

export type StargateTransferInfo = {
fromChainID: string;
toChainID: string;
state: StargateTransferState;
txs: StargateTransferTransactions;
};

export type StargateTransferState =
| "STARGATE_TRANSFER_UNKNOWN"
| "STARGATE_TRANSFER_SENT"
| "STARGATE_TRANSFER_RECEIVED"
| "STARGATE_TRANSFER_FAILED"


export type StargateTransferTransactionsJSON = {
send_tx: ChainTransactionJSON | null;
receive_tx: ChainTransactionJSON | null;
Expand Down Expand Up @@ -585,4 +552,4 @@ export interface TransactionCallbacks {
allowance?: ERC20Approval,
status: CallbackStatus
}) => Promise<void>;
}
}
3 changes: 2 additions & 1 deletion packages/widget/src/components/RenderWalletList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const RenderWalletList = ({

const height = useMemo(() => {
return Math.min(530, displayWallets.length * (ITEM_HEIGHT + ITEM_GAP));
}, [walletList, displayWallets.length]);
}, [displayWallets.length]);


const renderWalletListOrWalletConnectionStatus = useMemo(() => {
Expand Down Expand Up @@ -230,6 +230,7 @@ export const RenderWalletList = ({
renderItem,
theme.primary.text.lowContrast,
theme.primary.text.normal,
displayWallets,
]);

return (
Expand Down
7 changes: 0 additions & 7 deletions packages/widget/src/hooks/useCreateCosmosWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@ export const useCreateCosmosWallets = () => {
if (wallet === WalletType.KEPLR && !mobile) return keplrMainnetChainIdsInitialConnect
return walletMainnetChainIdsInitialConnect
})().filter(
const initialChainIds = (
isWC
? walletConnectMainnetChainIdsInitialConnect
: wallet === WalletType.KEPLR
? keplrMainnetChainIdsInitialConnect
: walletMainnetChainIdsInitialConnect
).filter(
(x) =>
chains
?.filter((z) => z.chainType === ChainType.Cosmos)
Expand Down
Loading