Skip to content
No description, website, or topics provided.
Scala Dockerfile
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.
project
src
.gitignore
Dockerfile
README.md
build.sbt
docker-compose.yml

README.md

Tezos FullStack Console

REST API for translating from Michelson to Micheline and back. It utilizes Tezos-FullStack-Console-Translation-Module to perform it.

Usage

  1. Clone repo

  2. Run sbt run

  3. Query your local instance with exemplary snippets

From Michelson to Micheline:

POST http://localhost:8080/v1/translate/from/michelson/to/micheline
Content-Type: text/plain

parameter int;
storage int;
code { CAR ;
       PUSH int 1 ;
       ADD ;
       NIL operation ;
       PAIR }

From Micheline to Michelson:

POST http://localhost:8080/v1/translate/from/micheline/to/michelson
Content-Type: application/json

[
  {
    "prim": "parameter",
    "args": [
      {
        "prim": "int"
      }
    ]
  },
  {
    "prim": "storage",
    "args": [
      {
        "prim": "int"
      }
    ]
  },
  {
    "prim": "code",
    "args": [
      [
        {
          "prim": "CAR"
        },
        {
          "prim": "PUSH",
          "args": [
            {
              "prim": "int"
            },
            {
              "int": "1"
            }
          ]
        },
        {
          "prim": "ADD"
        },
        {
          "prim": "NIL",
          "args": [
            {
              "prim": "operation"
            }
          ]
        },
        {
          "prim": "PAIR"
        }
      ]
    ]
  }
]

##Run in docker

sbt assembly

docker-compose up

References

Conseil

ConseilJS

You can’t perform that action at this time.