Skip to content

migrate off protobufjs #1487

Description

@dynst

yarn run pbjs -w commonjs -t static-module $TMP_DIR/mayanode/proto/mayachain/v1/common/common.proto $TMP_DIR/mayanode/proto/mayachain/v1/x/mayachain/types/msg_deposit.proto $TMP_DIR/mayanode/proto/mayachain/v1/x/mayachain/types/msg_send.proto $TMP_DIR/mayanode/third_party/proto/cosmos/base/v1beta1/coin.proto -o $MSG_COMPILED_OUTPUTFILE

120K    packages/xchain-mayachain/src/types/proto/MsgCompiled.js
308K    packages/xchain-thorchain/src/types/proto/MsgCompiled.js

xchain-thorchain itself is ~ 45.64 kB bundled, before you add its dependencies. https://bundlephobia.com/package/@xchainjs/xchain-thorchain@3.0.8

There's got to be a better way.

https://buf.build/blog/protobuf-es-the-protocol-buffers-typescript-javascript-runtime-we-all-deserve
https://www.npmjs.com/package/@bufbuild/protobuf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions