🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@penumbra-zone/protobuf

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@penumbra-zone/protobuf

Exports a `@bufbuild/protobuf` type registry with all message types necessary to communicate with a Penumbra extension

latest
npmnpm
Version
11.0.0
Version published
Weekly downloads
740
-4.88%
Maintainers
3
Weekly downloads
 
Created
Source

@penumbra-zone/protobuf

This package exports protobuf message types generated with @bufbuild intended for use with other @penumbra-zone packages.

If you are looking for a Penumbra client

You should install @penumbra-zone/client.

Other Exports

This package exports a typeRegistry (and jsonOptions including said registry) for use with createChannelTransport of @penumbra-zone/transport-dom or any @connectrpc transport.

All types necessary for a to serialize/deserialize communication with Prax or any other Penumbra provider are included.

Service definitions for all relevant Penumbra services, and some related Cosmos definitions are exported.

A Simple example

import { jsonOptions } from '@penumbra-zone/protobuf';
import { createChannelTransport } from '@penumbra-zone/transport-dom';

// naively get first available provider
const provider = Object.values(window[Symbol.for('penumbra')])[0];

// establish a transport
const transport = createChannelTransport({ jsonOptions, getPort: provider.connect });

// export function to create client
export const createPenumbraClient = serviceType => createPromiseClient(serviceType, transport);

FAQs

Package last updated on 16 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts