0.6.0 • Published 2 years ago

@lazyledger/protobuf3-solidity-lib v0.6.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

protobuf3-solidity-lib

NPM Package GitHub release (latest SemVer) Node.js CI GitHub

Codec library for protobuf3 in Solidity. This library provides encoding and decoding functions for core protobuf3 types.

Overview

Installation

npm install --save @lazyledger/protobuf3-solidity-lib

Usage

Import the library in Solidity:

pragma solidity >=0.8.4 <0.9.0;

import "@lazyledger/protobuf3-solidity-lib/contracts/ProtobufLib.sol";

Building from source

Install dependencies:

npm install

Build:

npm run build

Test:

npm run test

Supported Features

typedecodeencode
key✔️✔️
varint✔️✔️
int32✔️✔️
int64✔️✔️
uint32✔️✔️
uint64✔️✔️
sint32✔️✔️
sint64✔️✔️
fixed32✔️✔️
sfixed32✔️✔️
fixed64✔️✔️
sfixed64✔️✔️
bool✔️✔️
enum✔️✔️
string✔️✔️
bytes✔️✔️
embedded messages✔️✔️
packed repeated✔️✔️

Unsupported Features

Start and end group deprecated wire types, float, double field types.

0.6.0

2 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.4

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago