rchain-community / rchain-api

An API for rchain dapps to communicate with the blockchain
Other
22 stars 12 forks source link

Either, Any types in CasperMessage.proto #60

Closed dckc closed 5 years ago

dckc commented 5 years ago

@sebtomba writes:

It shouldn't be hard in other languages to process this type the same way a Google Any is handled. Please look at the grpc code in your favorite client language. -- https://github.com/rchain/rchain/pull/2202#discussion_r260655968

See also:

https://github.com/rchain/rchain/blob/5ce7e1dfb7f6a4586b6a23ddc524f1d8135acde3/models/src/main/protobuf/CasperMessage.proto

dckc commented 5 years ago

@edeykholt writes:

Since release 0.8.3(?) now 0.9.1 returns type coop.rchain.either.Either type. I knew this fun was coming, but still takes time. Looks like the following is a great example of how to handle it: https://github.com/rchain/rsong/blob/master/core/src/main/scala/coop/rchain/rsong/core/repo/RNodeProxy.scala.