Skip to content
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: 2 additions & 4 deletions .github/workflows/package-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
- 'ts-sdk/**'
- '.changeset/**'
workflow_dispatch: {}

permissions: {}

jobs:
snapshot:
name: Snapshot
Expand All @@ -32,7 +30,7 @@ jobs:
- name: Make writable snapshot copy
run: |
rm -rf ./snapshot-pkg
rsync -a --copy-links ./result/dist ./snapshot-pkg/
rsync -a --copy-links ./result/ ./snapshot-pkg/
chmod -R u+w ./snapshot-pkg
- uses: actions/setup-node@v4
with: {node-version: 22}
Expand All @@ -42,4 +40,4 @@ jobs:
run_install: false
- name: Create snapshot
id: snapshot
run: pnpm dlx pkg-pr-new@0.0.54 publish --pnpm --comment=off ./snapshot-pkg/dist
run: pnpm dlx pkg-pr-new@0.0.54 publish --pnpm --comment=off ./snapshot-pkg
53 changes: 0 additions & 53 deletions .github/workflows/typescript-sdk-preview.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/typescript-sdk-publish.yml

This file was deleted.

1 change: 0 additions & 1 deletion app2/.npmrc

This file was deleted.

10 changes: 2 additions & 8 deletions app2/app2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ _: {
pkgs,
pkgsUnstable,
ensureAtRepositoryRoot,
lib,
gitShortRev,
lastModified,
lastModifiedDate,
buildPnpmPackage,
...
}:
let
buildPnpmPackage = import ../tools/typescript/buildPnpmPackage.nix {
inherit pkgs lib;
};
deps = with pkgsUnstable; [
python3
stdenv.cc
Expand All @@ -35,24 +32,21 @@ _: {
packageJsonPath = ./package.json;
extraSrcs = [
../app2
../typescript-sdk
../ts-sdk
../ts-sdk-evm
../ts-sdk-cosmos
];
hash = "sha256-+eBL34sxYBIt2SiiLeSbn93zBN/JqGDJSaKY+3DpSos=";
hash = "sha256-VkzzXZr7WNTSE8pBOcLLd9vZThjFqsSJaEKwb7bi4PY=";
buildInputs = deps;
nativeBuildInputs = buildInputs;
pnpmWorkspaces = [
"app2"
"@unionlabs/sdk"
"@unionlabs/sdk-evm"
"@unionlabs/sdk-cosmos"
"@unionlabs/client"
];
buildPhase = ''
runHook preBuild

export PUBLIC_DATADOG_CLIENT_TOKEN="${PUBLIC_DATADOG_CLIENT_TOKEN}"
export PUBLIC_GIT_REV="${PUBLIC_GIT_REV}"
export PUBLIC_LAST_MODIFIED_DATE="${PUBLIC_LAST_MODIFIED_DATE}"
Expand Down
46 changes: 24 additions & 22 deletions app2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
"supabase:generate": "supabase gen types --lang='typescript' --project-id='uorqzpuryrgfnecadajo' > './src/lib/dashboard/database.types.ts'"
},
"devDependencies": {
"@types/node": "^24.3.1",
"@aptos-labs/ts-sdk": "1.38.0",
"@chain-registry/types": "^0.50.144",
"@cosmjs/amino": "^0.33.1",
"@cosmjs/cosmwasm-stargate": "0.33.1",
"@cosmjs/math": "^0.33.1",
"@cosmjs/proto-signing": "^0.33.1",
"@cosmjs/stargate": "0.33.1",
"@cosmjs/tendermint-rpc": "^0.33.1",
"@cosmjs/cosmwasm-stargate": "catalog:",
"@cosmjs/math": "0.33.1",
"@cosmjs/proto-signing": "catalog:",
"@cosmjs/stargate": "catalog:",
"@cosmjs/tendermint-rpc": "catalog:",
"@datadog/browser-logs": "^6.6.4",
"@effect/experimental": "0.48.6",
"@effect/platform": "0.84.6",
"@effect/typeclass": "^0.35.5",
"@effect/experimental": "catalog:",
"@effect/platform": "catalog:",
"@effect/typeclass": "catalog:",
"@effect/vitest": "catalog:",
"@eslint/compat": "^1.2.8",
"@eslint/js": "^9.24.0",
"@keplr-wallet/types": "^0.12.220",
Expand All @@ -39,42 +38,45 @@
"@safe-global/safe-gateway-typescript-sdk": "^3.23.1",
"@scure/base": "^1.2.4",
"@supabase/supabase-js": "^2.49.4",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.21.3",
"@sveltejs/vite-plugin-svelte": "^5.1.0",
"@sveltejs/adapter-static": "catalog:svelte",
"@sveltejs/kit": "catalog:svelte",
"@sveltejs/vite-plugin-svelte": "catalog:svelte",
"@tailwindcss/vite": "^4.1.4",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/svelte": "^5.2.4",
"@unionlabs/client": "workspace:*",
"@testing-library/svelte": "catalog:svelte",
"@types/node": "24.6.1",
"@unionlabs/sdk": "workspace:*",
"@unionlabs/sdk-cosmos": "workspace:*",
"@unionlabs/sdk-evm": "workspace:*",
"@wagmi/connectors": "^5.7.12",
"@wagmi/core": "^2.16.7",
"@web3modal/wagmi": "5.1.11",
"clsx": "^2.1.1",
"effect": "3.16.3",
"effect": "catalog:",
"eslint": "^9.24.0",
"eslint-plugin-svelte": "^3.5.1",
"eslint-plugin-svelte": "catalog:svelte",
"globals": "^16.0.0",
"gql.tada": "^1.8.10",
"graphql": "^16.10.0",
"graphql-request": "^7.1.2",
"happy-dom": "^17.4.4",
"knip": "^5.63.0",
"ox": "^0.6.9",
"react": "catalog:",
"rehype-rewrite": "^4.0.2",
"rehype-stringify": "^10.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"svelte": "^5.33.18",
"svelte-check": "^4.2.1",
"starknet": "catalog:",
"svelte": "catalog:svelte",
"svelte-check": "catalog:svelte",
"tailwind-merge": "^3.2.0",
"tailwindcss": "^4.1.4",
"typescript": "catalog:",
"typescript-eslint": "^8.30.1",
"unified": "^11.0.5",
"vfile": "^6.0.3",
"viem": "^2.33.3",
"vite": "^6.3.1"
"viem": "2.33.3",
"vite": "catalog:",
"vitest": "catalog:"
}
}
12 changes: 1 addition & 11 deletions app2/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import type { Window as KeplrWindow } from "@keplr-wallet/types"
import type { LeapWindow } from "@leapwallet/types"
import type { AptosBrowserWallet } from "@unionlabs/client"

type FeaturesQuery = ReturnType<typeof enabledFeatures>
type Features = NonNullable<FeaturesQuery["data"]>["v1_ibc_union_chains"]

interface AptosWindow {
aptos: AptosBrowserWallet
petra: AptosBrowserWallet
martian: AptosBrowserWallet
okxwallet: {
aptos: AptosBrowserWallet
}
}

declare global {
namespace App {
// interface Locals {
Expand All @@ -24,7 +14,7 @@ declare global {
// }
}

interface Window extends AptosWindow, KeplrWindow, LeapWindow, Browser {
interface Window extends KeplrWindow, LeapWindow, Browser {
EventEmitter: typeof EventEmitter

/** Guard to ensure GitHub logo proxy patches are applied only once */
Expand Down
3 changes: 0 additions & 3 deletions app2/src/lib/components/model/ErrorComponent.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import Button from "$lib/components/ui/Button.svelte"
import type { GraphQLError } from "$lib/graphql/error"
import { FetchAptosTokenBalanceError } from "$lib/services/aptos/balances"
import type { QueryBankBalanceError } from "$lib/services/cosmos/balances"
import type { FetchNativeBalanceError, ReadContractError } from "$lib/services/evm/balances"
import type { NoViemChainError } from "$lib/services/evm/clients"
Expand Down Expand Up @@ -73,7 +72,6 @@ interface Props {
| CreateWalletClientError
| CryptoError
| ExecuteContractError
| FetchAptosTokenBalanceError
| FetchNativeBalanceError
| FromHexError
| GasPriceError
Expand Down Expand Up @@ -128,7 +126,6 @@ const getUserFriendlyMessage = pipe(
FromHexError: () => `Failed to decode hex.`,
GetChainInfoError: (x) => `No info for EVM chain ${x.chainId}.`, // TODO: rename to EVM
NoCosmosChainInfoError: (x) => `No info for Cosmos chain ${x.chain.display_name}.`,
FetchAptosTokenBalanceError: () => `Failed to fetch aptos token balance.`,
NoRpcError: (error) => `No ${error.type} endpoint available for ${error.chain.display_name}.`,
NoSuchElementException: () => "An unexpected error occurred.", // TODO: remove me for more explicit errors
NoViemChain: () => "Chain configuration not found for the selected network.",
Expand Down
Loading