Skip to content
Forge related proto definition and Goldorin GQL definition
Elixir Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.makefiles add makefiles and bump version Feb 5, 2019
config
lib Fix: error code description for account_migrate (#105) Aug 21, 2019
priv Fix: error code description for account_migrate (#105) Aug 21, 2019
test
vendors extract forge_abi to a separate repo Feb 5, 2019
.credo.exs Switch to tether state. (#80) May 2, 2019
.dialyzer_ignore.exs move arc / type_url to forge_abi. Feb 6, 2019
.editorconfig support deploy tx (#63) Apr 20, 2019
.elixir_version update the version of the abi repo Feb 5, 2019
.formatter.exs update the version of the abi repo Feb 5, 2019
.gitignore Generate error code with provided yml file (#96) Jul 16, 2019
.pre-commit move arc / type_url to forge_abi. Feb 6, 2019
.travis.yml fix travis Feb 13, 2019
CHANGELOG.md
LICENSE
Makefile generate default error for none defined txs (#99) Jul 23, 2019
README.md
mix.exs Generate error code with provided yml file (#96) Jul 16, 2019
mix.lock
version Fix: error code description for account_migrate (#105) Aug 21, 2019

README.md

ForgeAbi

Forge Abi contains forge related protocol buffer definitions and Goldorin GraphQL definitions.

How to build

To build Elixir protobuf, we need to use a library to parse data from .proto and generate .ex files. We are using Elixir's protobuf. Please follow the readme to learn how to build.

Protobuf

The protobuf contains the protocol buffer definitions for forge.

  • enum.proto - enum type
  • rpc.proto - rpc related message type
  • service.proto - gRPC related service
  • state.proto - forge related state
  • trace_type.proto - indexed db related type
  • tx.proto - tx related type
  • type.proto - all basic type

The protobuf/gen folder contains the generated Elixir code for protobuf definitions.

Goldorin

Goldorin is an ArcBlock internal tool to generate GQL schema from yaml file. We are using .proto files to generate .yml files, then use Goldorin to generate GQL schema .ex files.

The yml files are in priv/schema

What is Vendors proto?

We use few 3rd party projects in forge. Some of them has their own protobuf definitions. We put the ones we used in a single proto file in vendors/vendor.proto.

You can’t perform that action at this time.