6.3.0 • Published 8 months ago

@penumbra-zone/protobuf v6.3.0

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
-
Last release
8 months ago

@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);
6.3.0

8 months ago

6.2.0

8 months ago

5.6.0

11 months ago

5.5.0

11 months ago

5.4.0

12 months ago

5.3.1

12 months ago

5.3.0

12 months ago

5.2.0

12 months ago

5.1.0

1 year ago

5.0.0

1 year ago

6.1.0

9 months ago

6.0.0

10 months ago

3.0.0

1 year ago

4.1.0

1 year ago

4.0.0

1 year ago

4.2.0

1 year ago

2.1.0

1 year ago

5.7.0

11 months ago

2.0.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago