@arcblock/forge-proto
TypeScript icon, indicating that this package has built-in type declarations

1.7.1 • Public • Published

forge-proto

styled with prettier docs Gitter

Javascript modules generated using protoc from ForgeSDK protobuf

Table of Contents

Install

npm install @arcblock/forge-proto
// or
yarn add @arcblock/forge-proto

Usage

const { fromTypeUrl, toTypeUrl, getMessageType, enums } = require('@arcblock/forge-proto');

console.log(fromTypeUrl('fg:t:stake'));   // StakeTx
console.log(toTypeUrl('StakeTx'));        // fg:t:stake

const { fields, fn: Message } = getMessageType('RequestCreateTx');
const message = new Message({
  from: 'abc',
});

Documentation

For full documentation, checkout https://forge-js.netlify.com

Contributors

Name Website
wangshijun https://www.arcblock.io

Dependents (8)

Package Sidebar

Install

npm i @arcblock/forge-proto

Weekly Downloads

8

Version

1.7.1

License

Apache-2.0

Unpacked Size

1.8 MB

Total Files

20

Last publish

Collaborators

  • wangshijun
  • polunzh
  • mave99a
  • gxw