GithubHelp home page GithubHelp logo

flow-elixir-sdk's Introduction

Flex ๐Ÿ’ช the Flow Elixir SDK

๐Ÿšง Not production ready. At all. ๐Ÿšง

Elixir client SDK for the Flow blockchain. The goal is to have feature-parity with the officially supported JS and Go SDKs. This may mean having an API for common or all gRPC methods defined at https://docs.onflow.org/access-api#block-headers.

Features

โœ… Ping

โœ… Execute scripts at latest block

โœ… Decode JSON-Cadence Data Interchange Format into a suitable Elixir format

๐Ÿšง Block Headers

๐Ÿšง Blocks

๐Ÿšง Scripts

๐Ÿšง Events

๐Ÿšง Transactions

๐Ÿšง Accounts

Installation

If available in Hex, the package can be installed by adding flow_ex to your list of dependencies in mix.exs:

def deps do
  [
    {:flow_ex, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/flow_ex.

Learning Resources

Development

  1. Run git submodule init initialize the git submodule.
  2. Run git submodule update --remote to pull the latest commit (though we expect the contracts to infrequently if ever change).
  3. If there are changes to the Flow contracts, re-generate Elixir code from the protobufs. See Protobuf Generation.
  4. Install the Flow CLI.
  5. Run flow emulator start

Protobuf Generation

See Generate Elixir code in Elixir-Protobuf for more details.

  1. brew install protobuf
  2. protoc -I flow/protobuf/ --elixir_out=plugins=grpc:./lib/ flow/protobuf/flow/**/*.proto

flow-elixir-sdk's People

Contributors

dangdennis avatar

Stargazers

 avatar

Watchers

 avatar  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.