From 589631e3c1c49af3bbd2c71218ba875aa90a2b6a Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Tue, 24 Dec 2024 00:20:41 +0700 Subject: [PATCH 1/3] hotfix build release --- packages/client/src/types/lifecycle.ts | 35 +------------------ .../src/hooks/useCreateCosmosWallets.tsx | 7 ---- 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/packages/client/src/types/lifecycle.ts b/packages/client/src/types/lifecycle.ts index 78a5140d..740c21a1 100644 --- a/packages/client/src/types/lifecycle.ts +++ b/packages/client/src/types/lifecycle.ts @@ -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; @@ -585,4 +552,4 @@ export interface TransactionCallbacks { allowance?: ERC20Approval, status: CallbackStatus }) => Promise; -} \ No newline at end of file +} diff --git a/packages/widget/src/hooks/useCreateCosmosWallets.tsx b/packages/widget/src/hooks/useCreateCosmosWallets.tsx index b24239df..c8c873df 100644 --- a/packages/widget/src/hooks/useCreateCosmosWallets.tsx +++ b/packages/widget/src/hooks/useCreateCosmosWallets.tsx @@ -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) From 31aa6c5f897a6c92db1c163e78dd47d02df55e6e Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Tue, 24 Dec 2024 00:21:26 +0700 Subject: [PATCH 2/3] changeset --- .changeset/stale-chefs-add.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/stale-chefs-add.md diff --git a/.changeset/stale-chefs-add.md b/.changeset/stale-chefs-add.md new file mode 100644 index 00000000..3a363e71 --- /dev/null +++ b/.changeset/stale-chefs-add.md @@ -0,0 +1,6 @@ +--- +'@skip-go/client': patch +'@skip-go/widget': patch +--- + +fix build From f6e08e75c3cf87231278d507a3a1c1f9b675d42a Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Tue, 24 Dec 2024 00:29:03 +0700 Subject: [PATCH 3/3] fix eslint hook deps --- packages/widget/src/components/RenderWalletList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/widget/src/components/RenderWalletList.tsx b/packages/widget/src/components/RenderWalletList.tsx index f71d90e5..1ad05752 100644 --- a/packages/widget/src/components/RenderWalletList.tsx +++ b/packages/widget/src/components/RenderWalletList.tsx @@ -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(() => { @@ -230,6 +230,7 @@ export const RenderWalletList = ({ renderItem, theme.primary.text.lowContrast, theme.primary.text.normal, + displayWallets, ]); return (