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

publish useful packages #1305

Merged
merged 31 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c132b12
reconfigure all package builds
turbocrime Jun 14, 2024
c7292a0
changeset
turbocrime Jun 14, 2024
576b2c2
rm unused
turbocrime Jun 14, 2024
d81196c
don't move tests
turbocrime Jun 14, 2024
88cd7b2
lint, have to use ts-ignore
turbocrime Jun 14, 2024
e3c99f2
tsconfig uniform
turbocrime Jun 14, 2024
6af4619
restore internal-msg
turbocrime Jun 14, 2024
c74c1ee
fix validation check
turbocrime Jun 14, 2024
3360ba9
bundle types package at build
turbocrime Jun 14, 2024
645524e
node 22 in ci
turbocrime Jun 14, 2024
3a0d070
lint again
turbocrime Jun 14, 2024
7e6d50c
build wasm with tsup
turbocrime Jun 16, 2024
2bf662e
use __DEV__ global instead of node process global, rm node types
turbocrime Jun 17, 2024
69b5a5f
use tsup.config.ts instead of cli args
turbocrime Jun 17, 2024
7cd75aa
tsconfigs
turbocrime Jun 17, 2024
5797f61
rebase
turbocrime Jun 17, 2024
67edd42
misplaced file
turbocrime Jun 17, 2024
4a8cc64
trying to use packages
turbocrime Jun 17, 2024
25d43f8
reduce scope, wip
turbocrime Jun 17, 2024
c651bec
rm array polyfill, ts 5.5, working
turbocrime Jun 17, 2024
815f608
no tsup, no polyfills
turbocrime Jun 18, 2024
da94162
private packages use @repo namespace
turbocrime Jun 18, 2024
5a922a2
unused tsup configs
turbocrime Jun 18, 2024
8791b46
incremental
turbocrime Jun 18, 2024
f4f7c07
review changes
turbocrime Jun 18, 2024
aa074e1
format
turbocrime Jun 18, 2024
494bad6
rm withResolvers shim
turbocrime Jun 18, 2024
52df849
script pack-public
turbocrime Jun 18, 2024
bfebf37
no incremental
turbocrime Jun 18, 2024
b42ed01
rm config paths
turbocrime Jun 18, 2024
656db1c
lint
turbocrime Jun 18, 2024
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
24 changes: 24 additions & 0 deletions .changeset/ninety-meals-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
'@penumbra-zone/transport-chrome': major
'@repo/tailwind-config': major
'@repo/eslint-config': major
'@penumbra-zone/transport-dom': major
'@penumbra-zone/perspective': major
'@penumbra-zone/protobuf': major
'@penumbra-zone/services': major
'@repo/tsconfig': major
'node-status': major
'@penumbra-zone/bech32m': major
'@penumbra-zone/getters': major
'@penumbra-zone/storage': major
'@penumbra-zone/client': major
'@penumbra-zone/crypto-web': major
'@penumbra-zone/zquery': major
'minifront': major
'@penumbra-zone/query': major
'@penumbra-zone/types': major
'@penumbra-zone/wasm': major
'@repo/ui': major
---

reconfigure all package builds
2 changes: 1 addition & 1 deletion .github/workflows/compile-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packages-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/turbo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
Expand All @@ -85,7 +85,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm turbo telemetry disable
Expand All @@ -107,7 +107,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -131,7 +131,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: buildjet/setup-node@v4
with:
node-version: '21'
node-version: '22'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ lerna-debug.log*
# pack outputs
penumbra-zone-*.tgz
packages/*/package

tsconfig.tsbuildinfo
1 change: 1 addition & 0 deletions .syncpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"packageManager",
"type",
"main",
"engine",
"scripts",
"files",
"exports",
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { penumbraEslintConfig } from '@penumbra-zone/eslint-config';
import { penumbraEslintConfig } from '@repo/eslint-config';
import { config, parser } from 'typescript-eslint';

export default config({
Expand Down
15 changes: 3 additions & 12 deletions apps/minifront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"test": "vitest run"
},
"dependencies": {
"@buf/cosmos_ibc.bufbuild_es": "1.9.0-20240530142100-ad4444393387.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.9.0-20240528180215-8fe1c79485f8.1",
"@bufbuild/protobuf": "^1.10.0",
"@cosmjs/proto-signing": "^0.32.3",
"@cosmjs/stargate": "^0.32.3",
Expand All @@ -30,12 +28,13 @@
"@penumbra-zone/protobuf": "workspace:*",
"@penumbra-zone/transport-dom": "workspace:*",
"@penumbra-zone/types": "workspace:*",
"@penumbra-zone/ui": "workspace:*",
"@penumbra-zone/zquery": "workspace:*",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@radix-ui/react-portal": "^1.0.4",
"@repo/ui": "workspace:*",
"@tanstack/react-query": "4.36.1",
"bech32": "^2.0.0",
"bignumber.js": "^9.1.2",
Expand All @@ -54,23 +53,15 @@
"react-router-dom": "^6.23.1",
"sonner": "1.4.3",
"tailwindcss": "^3.4.3",
"zod": "^3.23.8",
"zustand": "^4.5.2"
},
"devDependencies": {
"@chain-registry/types": "^0.44.6",
"@penumbra-zone/polyfills": "workspace:*",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@types/lodash": "^4.17.4",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"@types/react-helmet": "^6.1.11",
"autoprefixer": "^10.4.19",
"firebase-tools": "^13.9.0",
"postcss": "^8.4.38",
"promise.withresolvers": "^1.0.3",
turbocrime marked this conversation as resolved.
Show resolved Hide resolved
"vite-plugin-node-stdlib-browser": "^0.2.1"
"@types/react-helmet": "^6.1.11"
}
}
2 changes: 1 addition & 1 deletion apps/minifront/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from '@penumbra-zone/ui/postcss.config.js';
export { default } from '@repo/ui/postcss.config.js';
4 changes: 0 additions & 4 deletions apps/minifront/promise.withresolvers.d.ts

This file was deleted.

6 changes: 1 addition & 5 deletions apps/minifront/src/abort-loader.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
isPraxConnected,
throwIfPraxNotConnected,
throwIfPraxNotInstalled,
} from '@penumbra-zone/client/prax';
import { isPraxConnected, throwIfPraxNotConnected, throwIfPraxNotInstalled } from './prax';

/**
* Retry test, resolving `true`, or resolving `false` if timeout reached.
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/clients.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { createPraxClient } from '@penumbra-zone/client/prax';
import {
CustodyService,
DexService,
Expand All @@ -11,6 +10,7 @@ import {
TendermintProxyService,
ViewService,
} from '@penumbra-zone/protobuf';
import { createPraxClient } from './prax';

export const custodyClient = createPraxClient(CustodyService);
export const dexClient = createPraxClient(DexService);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { asValueView } from '@penumbra-zone/getters/equivalent-value';
import { getDisplayDenomFromView, getEquivalentValues } from '@penumbra-zone/getters/value-view';
import { ValueViewComponent } from '@penumbra-zone/ui/components/ui/tx/view/value';
import { ValueViewComponent } from '@repo/ui/components/ui/tx/view/value';

export const EquivalentValues = ({ valueView }: { valueView?: ValueView }) => {
const equivalentValuesAsValueViews = (getEquivalentValues.optional()(valueView) ?? []).map(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LoaderFunction, useLoaderData } from 'react-router-dom';
import { AddressIcon } from '@penumbra-zone/ui/components/ui/address-icon';
import { AddressComponent } from '@penumbra-zone/ui/components/ui/address-component';
import { AddressIcon } from '@repo/ui/components/ui/address-icon';
import { AddressComponent } from '@repo/ui/components/ui/address-component';
import { BalancesByAccount, getBalancesByAccount } from '../../../fetchers/balances/by-account';
import {
Table,
Expand All @@ -9,8 +9,8 @@ import {
TableHead,
TableHeader,
TableRow,
} from '@penumbra-zone/ui/components/ui/table';
import { ValueViewComponent } from '@penumbra-zone/ui/components/ui/tx/view/value';
} from '@repo/ui/components/ui/table';
import { ValueViewComponent } from '@repo/ui/components/ui/tx/view/value';
import { abortLoader } from '../../../abort-loader';
import { EquivalentValues } from './equivalent-values';
import { Fragment } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/dashboard/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card } from '@penumbra-zone/ui/components/ui/card';
import { Card } from '@repo/ui/components/ui/card';
import { dashboardTabs, dashboardTabsHelper } from './constants';
import { Outlet } from 'react-router-dom';
import { EduInfoCard } from '../shared/edu-panels/edu-info-card';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
TableHead,
TableHeader,
TableRow,
} from '@penumbra-zone/ui/components/ui/table';
} from '@repo/ui/components/ui/table';
import { Link } from 'react-router-dom';
import { shorten } from '@penumbra-zone/types/string';
import { useStore } from '../../state';
Expand Down
10 changes: 5 additions & 5 deletions apps/minifront/src/components/extension-not-connected.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { Toaster } from '@penumbra-zone/ui/components/ui/toaster';
import { SplashPage } from '@penumbra-zone/ui/components/ui/splash-page';
import { errorToast, warningToast } from '@penumbra-zone/ui/lib/toast/presets';
import { Button } from '@repo/ui/components/ui/button';
import { Toaster } from '@repo/ui/components/ui/toaster';
import { SplashPage } from '@repo/ui/components/ui/splash-page';
import { errorToast, warningToast } from '@repo/ui/lib/toast/presets';
import { HeadTag } from './metadata/head-tag';

import { requestPraxAccess } from '@penumbra-zone/client/prax';
import { useState } from 'react';
import { PenumbraRequestFailure } from '@penumbra-zone/client';
import { requestPraxAccess } from '../prax';

const handleErr = (e: unknown) => {
if (e instanceof Error && e.cause) {
Expand Down
4 changes: 2 additions & 2 deletions apps/minifront/src/components/extension-not-installed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { SplashPage } from '@penumbra-zone/ui/components/ui/splash-page';
import { Button } from '@repo/ui/components/ui/button';
import { SplashPage } from '@repo/ui/components/ui/splash-page';
import { HeadTag } from './metadata/head-tag';

const CHROME_EXTENSION_ID = 'lkpmkhpnhknhmibgnmmhdhgdilepfghe';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SplashPage } from '@penumbra-zone/ui/components/ui/splash-page';
import { SplashPage } from '@repo/ui/components/ui/splash-page';
import { HeadTag } from './metadata/head-tag';
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { Button } from '@repo/ui/components/ui/button';

export const ExtensionTransportDisconnected = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/minifront/src/components/header/header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CondensedBlockSyncStatus } from '@penumbra-zone/ui/components/ui/block-sync-status/condensed';
import { TestnetBanner } from '@penumbra-zone/ui/components/ui/testnet-banner';
import { CondensedBlockSyncStatus } from '@repo/ui/components/ui/block-sync-status/condensed';
import { TestnetBanner } from '@repo/ui/components/ui/testnet-banner';
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { getChainId } from '../../fetchers/chain-id';
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/header/menu/desktop-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@penumbra-zone/ui/lib/utils';
import { cn } from '@repo/ui/lib/utils';
import * as NavigationMenu from '@radix-ui/react-navigation-menu';
import { usePagePath } from '../../../fetchers/page-path';
import { dashboardLink, headerLinks } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/header/menu/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@penumbra-zone/ui/lib/utils';
import { cn } from '@repo/ui/lib/utils';
import { DesktopNav } from './desktop-nav';
import { MobileNav } from './mobile-nav';
import { ProviderMenu } from './provider';
Expand Down
7 changes: 1 addition & 6 deletions apps/minifront/src/components/header/menu/mobile-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
Sheet,
SheetContent,
SheetHeader,
SheetTrigger,
} from '@penumbra-zone/ui/components/ui/sheet';
import { Sheet, SheetContent, SheetHeader, SheetTrigger } from '@repo/ui/components/ui/sheet';
import { HamburgerMenuIcon } from '@radix-ui/react-icons';
import { headerLinks } from '../constants';
import { Link } from 'react-router-dom';
Expand Down
4 changes: 2 additions & 2 deletions apps/minifront/src/components/header/menu/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { cn } from '@penumbra-zone/ui/lib/utils';
import { cn } from '@repo/ui/lib/utils';
import * as NavigationMenu from '@radix-ui/react-navigation-menu';
import { getChainId } from '../../../fetchers/chain-id';
import { useCallback, useEffect, useState } from 'react';
import { getPraxManifest, getPraxOrigin } from '@penumbra-zone/client/prax';
import { itemStyle, triggerStyle, dropdownStyle, linkStyle } from './nav-style';
import { Link1Icon } from '@radix-ui/react-icons';
import { getPraxManifest, getPraxOrigin } from '../../../prax';

export const ProviderMenu = () => {
const [chainId, setChainId] = useState<string | undefined>();
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/header/menu/tablet-nav.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from '@penumbra-zone/ui/lib/utils';
import { cn } from '@repo/ui/lib/utils';
import * as NavigationMenu from '@radix-ui/react-navigation-menu';
import { usePagePath } from '../../../fetchers/page-path';
import { dashboardLink, headerLinks } from '../constants';
Expand Down
6 changes: 3 additions & 3 deletions apps/minifront/src/components/ibc/ibc-in/assets-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
TableHead,
TableHeader,
TableRow,
} from '@penumbra-zone/ui/components/ui/table';
import { Avatar, AvatarImage } from '@penumbra-zone/ui/components/ui/avatar';
import { Identicon } from '@penumbra-zone/ui/components/ui/identicon';
} from '@repo/ui/components/ui/table';
import { Avatar, AvatarImage } from '@repo/ui/components/ui/avatar';
import { Identicon } from '@repo/ui/components/ui/identicon';
import { LineWave } from 'react-loader-spinner';

export const AssetsTable = () => {
Expand Down
10 changes: 5 additions & 5 deletions apps/minifront/src/components/ibc/ibc-in/chain-dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import * as React from 'react';
import { useMemo } from 'react';
import { useManager } from '@cosmos-kit/react';
import { Popover, PopoverContent, PopoverTrigger } from '@penumbra-zone/ui/components/ui/popover';
import { Popover, PopoverContent, PopoverTrigger } from '@repo/ui/components/ui/popover';
import { ChevronsUpDown } from 'lucide-react';
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
} from '@penumbra-zone/ui/components/ui/command';
import { Button } from '@penumbra-zone/ui/components/ui/button';
} from '@repo/ui/components/ui/command';
import { Button } from '@repo/ui/components/ui/button';
import { ibcInSelector } from '../../../state/ibc-in';
import { useStore } from '../../../state';
import { Avatar, AvatarImage } from '@penumbra-zone/ui/components/ui/avatar';
import { Identicon } from '@penumbra-zone/ui/components/ui/identicon';
import { Avatar, AvatarImage } from '@repo/ui/components/ui/avatar';
import { Identicon } from '@repo/ui/components/ui/identicon';

export interface ChainInfo {
chainName: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AllSlices } from '../../../state';
import { useEffect } from 'react';
import { IncognitoIcon } from '@penumbra-zone/ui/components/ui/icons/incognito';
import { IncognitoIcon } from '@repo/ui/components/ui/icons/incognito';
import { useStoreShallow } from '../../../utils/use-store-shallow';

const addrsSelector = ({ ibcIn }: AllSlices) => ({
Expand Down
10 changes: 5 additions & 5 deletions apps/minifront/src/components/ibc/ibc-in/ibc-in-request.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
} from '@penumbra-zone/ui/components/ui/select';
import { Avatar, AvatarImage } from '@penumbra-zone/ui/components/ui/avatar';
import { Identicon } from '@penumbra-zone/ui/components/ui/identicon';
import { Input } from '@penumbra-zone/ui/components/ui/input';
} from '@repo/ui/components/ui/select';
import { Avatar, AvatarImage } from '@repo/ui/components/ui/avatar';
import { Identicon } from '@repo/ui/components/ui/identicon';
import { Input } from '@repo/ui/components/ui/input';
import { DestinationAddr } from './destination-addr';
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { Button } from '@repo/ui/components/ui/button';
import { LockClosedIcon } from '@radix-ui/react-icons';

const isReadySelector = (state: AllSlices) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Identicon } from '@penumbra-zone/ui/components/ui/identicon';
import { Identicon } from '@repo/ui/components/ui/identicon';

interface UserInfoProps {
address: string;
Expand Down
Loading
Loading