Skip to content

Commit

Permalink
Update to latest registry (#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Jun 12, 2024
1 parent abe76a8 commit adf3a28
Show file tree
Hide file tree
Showing 8 changed files with 1,319 additions and 1,591 deletions.
8 changes: 8 additions & 0 deletions .changeset/eight-donuts-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@penumbra-zone/services-context': patch
'@penumbra-zone/storage': patch
'chrome-extension': patch
'minifront': patch
---

Update to june 12 testnet registry
2 changes: 1 addition & 1 deletion apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@penumbra-labs/registry": "8.0.0",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-zone/bech32m": "workspace:*",
"@penumbra-zone/client": "workspace:*",
"@penumbra-zone/crypto-web": "workspace:*",
Expand Down
14 changes: 7 additions & 7 deletions apps/minifront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@bufbuild/protobuf": "^1.10.0",
"@cosmjs/proto-signing": "^0.32.3",
"@cosmjs/stargate": "^0.32.3",
"@cosmos-kit/core": "^2.10.0",
"@cosmos-kit/react": "^2.12.0",
"@interchain-ui/react": "^1.23.13",
"@penumbra-labs/registry": "8.0.0",
"@cosmos-kit/core": "^2.12.0",
"@cosmos-kit/react": "^2.15.0",
"@interchain-ui/react": "^1.23.16",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-zone/bech32m": "workspace:*",
"@penumbra-zone/client": "workspace:*",
"@penumbra-zone/crypto-web": "workspace:*",
Expand All @@ -35,8 +35,8 @@
"@tanstack/react-query": "4.36.1",
"bech32": "^2.0.0",
"bignumber.js": "^9.1.2",
"chain-registry": "^1.59.2",
"cosmos-kit": "^2.12.0",
"chain-registry": "^1.62.8",
"cosmos-kit": "^2.17.0",
"date-fns": "^3.6.0",
"framer-motion": "^11.2.4",
"immer": "^10.1.1",
Expand All @@ -54,7 +54,7 @@
"zustand": "^4.5.2"
},
"devDependencies": {
"@chain-registry/types": "^0.41.1",
"@chain-registry/types": "^0.44.6",
"@penumbra-zone/polyfills": "workspace:*",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const CosmosWalletConnector = () => {

return (
<div className='flex flex-col items-center justify-center gap-4'>
<div className='w-52'>
<div className='flex w-52 flex-col justify-center'>
<ConnectWalletButton />
</div>
{address && <WalletAddrCard username={username} address={address} />}
Expand Down
24 changes: 16 additions & 8 deletions apps/minifront/src/components/ibc/ibc-in/wallet-connect-button.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Button } from '@interchain-ui/react';
import { WalletStatus } from 'cosmos-kit';
import { WalletIcon } from '@penumbra-zone/ui/components/ui/icons/wallet';
import { MouseEventHandler } from 'react';
import { useStore } from '../../../state';
import { ibcInSelector } from '../../../state/ibc-in';

import { useChainConnector } from './hooks';
import { cn } from '@penumbra-zone/ui/lib/utils';

export const ConnectWalletButton = () => {
const { connect, openView, status } = useChainConnector();
Expand Down Expand Up @@ -52,19 +52,27 @@ interface BaseProps {

const WalletButtonBase = ({ buttonText, isLoading, isDisabled, onClick }: BaseProps) => {
return (
<Button
fluidWidth
size='md'
isLoading={isLoading}
<button
disabled={isDisabled}
onClick={onClick}
className='relative'
className={cn(
'relative',
isDisabled && 'hover:cursor-not-allowed',
isLoading && 'hover:cursor-wait',
)}
>
<div className='absolute inset-0 z-0 -m-px rounded-lg bg-gradient-to-r from-[rgba(157,75,199,1)] via-[rgba(138,78,201.5,1)] to-[rgba(119,81,204,1)]'></div>
<div
className={cn(
'absolute inset-0 z-0 -m-px rounded-lg bg-gradient-to-r',
'from-[rgba(157,75,199,1)] via-[rgba(138,78,201.5,1)] to-[rgba(119,81,204,1)]',
isDisabled &&
'from-[rgba(157,75,199,0.7)] via-[rgba(138,78,201,0.7)] to-[rgba(119,81,204,0.7)]',
)}
/>
<div className='relative z-10 flex items-center justify-center gap-1 rounded p-2'>
<WalletIcon />
<span className='font-bold'>{buttonText ? buttonText : 'Connect Wallet'}</span>
</div>
</Button>
</button>
);
};
2 changes: 1 addition & 1 deletion packages/services-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
".": "./src/index.ts"
},
"dependencies": {
"@penumbra-labs/registry": "8.0.0",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-zone/query": "workspace:*",
"@penumbra-zone/storage": "workspace:*",
"@penumbra-zone/types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"./indexed-db/*": "./src/indexed-db/*.ts"
},
"dependencies": {
"@penumbra-labs/registry": "8.0.0",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-zone/bech32m": "workspace:*",
"@penumbra-zone/crypto-web": "workspace:*",
"@penumbra-zone/getters": "workspace:*",
Expand Down
Loading

0 comments on commit adf3a28

Please sign in to comment.