Giter Site home page Giter Site logo

scasplte2 / protobuf-specs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from topl/protobuf-specs

0.0 0.0 0.0 268 KB

Protobuf specifications and definitions representing blockchain data types and communication channels

License: Mozilla Public License 2.0

Shell 10.16% Scala 84.19% Dart 1.33% Batchfile 2.52% Dockerfile 1.81%

protobuf-specs's Introduction

protobuf-specs

Protobuf specification and definitions representing blockchain data types and communication channels.

Topl logo Code of Conduct License @topl_protocol on Twitter @topl_protocol release

Required tools

Run

  • Windows:

    TODO

  • Linux:

    sh ./run_protocol_compilers.sh

Developers

When testing changes, it helps to verify their behavior in the libraries that consume these protobuf specs. You can publish the compiled protobuf as a "local" library and consume it in a different project.

Scala

  1. cd build/scala
  2. sbt publishLocal
  3. Check the logs to see the org/package/version that was published, and use as a normal SBT dependency in a different project
  • i.e. "co.topl" %% "protobuf-fs2" % "b56d2815"

JitPack

This repo can be consumed using jitpack. Here is how:

  • Each time a commit is pushed, it produces an artifact JitPack

Add jitpack to the resolvers list in build.sbt. It should look like this:

  resolvers ++= Seq("jitpack" at "https://jitpack.io")

  libraryDependencies += "com.github.Topl.protobuf-specs" %% "protobuf-fs2" % "e03a093"

Maven Release

This repo can be consumed using Sonatype s01 releases. Here is how:

  • Each time a tag is pushed, it produces an artifact: releases: releases
  • Each time a commit is pushed, it produces a snapshot artifact: snapshots

Add Sonatype to the resolvers list in build.sbt. It should look like this:

  resolvers ++= Seq(
    "Sonatype Staging" at "https://s01.oss.sonatype.org/content/repositories/staging",
    "Sonatype Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots/",
    "Sonatype Releases" at "https://s01.oss.sonatype.org/content/repositories/releases/"
  )

 libraryDependencies +=  "co.topl" %% "protobuf-fs2" % "2.0.0-alpha2"

Dart

  1. Install Dart protoc_plugin
  2. cd build/dart
  3. sh compile_protos.sh
  4. Reference the protobuf-specs/build/dart directory as a pubspec file dependency
    dependencies:
      topl_protobuf:
        path: /path/to/protobuf-specs/build/dart
    

Usages

See related projects

protobuf-specs's People

Contributors

seancheatham avatar mgrand-topl avatar scasplte2 avatar diademshoukralla avatar o-aleksandrov-topl avatar admiraladmirable avatar berriose avatar ignaciofernandezsoto avatar mundacho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.