Protobuf specification and definitions representing blockchain data types and communication channels.
- protocol compiler: protoc-installation
- Windows:
TODO
- Linux:
sh ./run_protocol_compilers.sh
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.
cd build/scala
sbt publishLocal
- 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"
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"
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"
- Install Dart protoc_plugin
cd build/dart
sh compile_protos.sh
- Reference the
protobuf-specs/build/dart
directory as a pubspec file dependencydependencies: topl_protobuf: path: /path/to/protobuf-specs/build/dart
See related projects