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

Prepare V11 release #71

Merged
merged 3 commits into from
Jun 28, 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: 0 additions & 6 deletions .changeset/fuzzy-games-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/green-frogs-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-geckos-fold.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/unlucky-brooms-relax.md

This file was deleted.

19 changes: 19 additions & 0 deletions apps/extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# chrome-extension

## 11.0.0

### Major Changes

- 200c492: Update to latest penumbra-zone packages

### Minor Changes

- 8b5a177: fulfill disconnect interface

### Patch Changes

- c04a858: Refactor UI package: sync it with the penumbra-zone/ui and remove unused components
- bc51c5c: save app params
- Updated dependencies [c04a858]
- Updated dependencies [200c492]
- @repo/[email protected]
- @repo/[email protected]

## 10.0.0

### Major Changes
Expand Down
24 changes: 12 additions & 12 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chrome-extension",
"version": "10.0.0",
"version": "11.0.0",
"private": true,
"license": "(MIT OR Apache-2.0)",
"description": "chrome-extension",
Expand All @@ -19,21 +19,21 @@
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-labs/registry": "9.1.0",
"@penumbra-zone/bech32m": "^6.1.0",
"@penumbra-zone/client": "^9.0.0",
"@penumbra-zone/crypto-web": "^6.0.0",
"@penumbra-zone/getters": "^9.0.0",
"@penumbra-zone/client": "^10.0.0",
"@penumbra-zone/crypto-web": "^8.0.0",
"@penumbra-zone/getters": "^10.0.0",
"@penumbra-zone/keys": "^4.2.0",
"@penumbra-zone/perspective": "^7.0.0",
"@penumbra-zone/protobuf": "^5.2.0",
"@penumbra-zone/query": "^7.0.0",
"@penumbra-zone/services": "^7.0.0",
"@penumbra-zone/storage": "^7.0.0",
"@penumbra-zone/perspective": "^9.0.0",
"@penumbra-zone/protobuf": "^5.3.0",
"@penumbra-zone/query": "^9.0.0",
"@penumbra-zone/services": "^10.0.0",
"@penumbra-zone/storage": "^9.0.0",
"@penumbra-zone/transport-chrome": "^5.0.0",
"@penumbra-zone/transport-dom": "^7.2.0",
"@penumbra-zone/types": "^10.0.0",
"@penumbra-zone/wasm": "^10.0.0",
"@penumbra-zone/types": "^12.0.0",
"@penumbra-zone/wasm": "^12.0.0",
"@repo/context": "workspace:*",
"@repo/ui": "workspace:*",
"@tanstack/react-query": "4.36.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Prax wallet",
"version": "10.0.0",
"version": "11.0.0",
"description": "For use in interacting with the Penumbra blockchain",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvnucOJi878TGZYnTNTrvXd9krAcpSDR/EgHcQhvjNZrKfRRsKA9O0DnbyM492c3hiicYPevRPLPoKsLgVghGDYPr8eNO7ee165keD5XLxq0wpWu14gHEPdQSRNZPLeawLp4s/rUwtzMcxhVIUYYaa2xZri4Tqx9wpR7YR1mQTAL8UsdjyitrnzTM20ciKXq1pd82MU74YaZzrcQCOmcjJtjHFdMEAYme+LuZuEugAgef9RiE/8kLQ6T7W9feYfQOky1OPjBkflpRXRgW6cACdl+MeYhKJCOHijglFsPOXX6AvnoJSeAJYRXOMVJi0ejLKEcrLpaeHgh+1WXUvc5G4wIDAQAB",
"minimum_chrome_version": "119",
Expand Down
6 changes: 6 additions & 0 deletions packages/context/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @penumbra-zone/services

## 4.1.0

### Minor Changes

- 200c492: Update to latest penumbra-zone packages

## 4.0.0

### Major Changes
Expand Down
16 changes: 8 additions & 8 deletions packages/context/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/context",
"version": "4.0.0",
"version": "4.1.0",
"private": true,
"license": "(MIT OR Apache-2.0)",
"type": "module",
Expand All @@ -16,18 +16,18 @@
},
"dependencies": {
"@penumbra-zone/bech32m": "^6.1.0",
"@penumbra-zone/protobuf": "^5.2.0"
"@penumbra-zone/protobuf": "^5.3.0"
},
"peerDependencies": {
"@buf/cosmos_ibc.bufbuild_es": "1.10.0-20240625204953-f66a294d94c4.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240625233123-429cb316aa7c.1",
"@bufbuild/protobuf": "^1.10.0",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-zone/crypto-web": "^6.0.0",
"@penumbra-zone/query": "^7.0.0",
"@penumbra-zone/storage": "^7.0.0",
"@penumbra-zone/types": "^10.0.0",
"@penumbra-zone/wasm": "^10.0.0",
"@penumbra-labs/registry": "9.1.0",
"@penumbra-zone/crypto-web": "^8.0.0",
"@penumbra-zone/query": "^9.0.0",
"@penumbra-zone/storage": "^9.0.0",
"@penumbra-zone/types": "^12.0.0",
"@penumbra-zone/wasm": "^12.0.0",
"exponential-backoff": "^3.1.1"
}
}
3 changes: 2 additions & 1 deletion packages/context/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ export class Services implements ServicesInterface {
});

const registry = registryClient.get(chainId);
const { stakingAssetId } = registryClient.globals();
const blockProcessor = new BlockProcessor({
viewServer,
querier,
indexedDb,
stakingTokenMetadata: registry.getMetadata(registry.stakingAssetId),
stakingTokenMetadata: registry.getMetadata(stakingAssetId),
numeraires: numeraires,
});

Expand Down
10 changes: 10 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @penumbra-zone/ui

## 5.0.0

### Major Changes

- c04a858: Refactor UI package: sync it with the penumbra-zone/ui and remove unused components

### Minor Changes

- 200c492: Update to latest penumbra-zone packages

## 4.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/components/ui/tx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TransactionView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbr
import { MemoViewComponent } from './memo-view';
import { ActionViewComponent } from './action-view';
import { ViewBox, ViewSection } from './viewbox';
import { getStakingTokenMetaData } from './registry';
import { getFeeAssetMetadataOrDefault } from './registry';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { ValueViewComponent } from '../value';

Expand All @@ -13,7 +13,7 @@ export const TransactionViewComponent = ({ txv }: { txv: TransactionView }) => {
// Request the fee 'Metadata' and construct a 'ValueView' object
const chainId = txv.bodyView.transactionParameters.chainId;
const assetId = txv.bodyView.transactionParameters.fee.assetId;
const feeAssetMetadata = getStakingTokenMetaData(chainId, assetId);
const feeAssetMetadata = getFeeAssetMetadataOrDefault(chainId, assetId);
const feeValueView = new ValueView({
valueView: {
case: 'knownAssetId',
Expand Down
12 changes: 4 additions & 8 deletions packages/ui/components/ui/tx/registry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ import {
Metadata,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';

export function getStakingTokenMetaData(
export function getFeeAssetMetadataOrDefault(
chainId: string,
assetId: AssetId | undefined,
assetId?: AssetId,
): Metadata | undefined {
const registryClient = new ChainRegistryClient();
const registry = registryClient.get(chainId);

if (assetId === undefined) {
assetId = registry.stakingAssetId;
}
const StakingTokenMetadata = registry.getMetadata(assetId);

return StakingTokenMetadata;
const feeAssetId = assetId ?? registryClient.globals().stakingAssetId;
return registry.getMetadata(feeAssetId);
}
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/ui",
"version": "4.0.0",
"version": "5.0.0",
"private": true,
"license": "(MIT OR Apache-2.0)",
"type": "module",
Expand Down Expand Up @@ -29,12 +29,12 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@penumbra-labs/registry": "8.0.1",
"@penumbra-labs/registry": "9.1.0",
"@penumbra-zone/bech32m": "^6.1.0",
"@penumbra-zone/getters": "^9.0.0",
"@penumbra-zone/perspective": "^7.0.0",
"@penumbra-zone/types": "^10.0.0",
"@penumbra-zone/wasm": "^10.0.0",
"@penumbra-zone/getters": "^10.0.0",
"@penumbra-zone/perspective": "^9.0.0",
"@penumbra-zone/types": "^12.0.0",
"@penumbra-zone/wasm": "^12.0.0",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "1.0.5",
Expand Down
Loading
Loading