Giter Site home page Giter Site logo

fil-tools's Introduction

filecoin

Made by Textile Chat on Slack GitHub license Go Report Card GitHub action

Textile's Filecoin swiss army knife for developers

Join us on our public Slack channel for news, discussions, and status updates. Check out our blog for the latest posts and announcements.

Table of Contents

Usage

Warning This project is still pre-release and is only meant for testing.

Lotus (lotus)

See https://lotu.sh/. Required for client. Lotus is an implementation of the Filecoin Distributed Storage Network—we run the Lotus client to join the Filecoin Testnet.

Client (filcoin)

Note to developers—as of 1/25/2020, the main line of development for the filecoin client is happening in the asutula/cli branch.

# from the asutula/cli branch
go build -i -o filecoin exe/cli/main.go 
chmod +x filecoin 

Try filecoin --help.

Server

The server connects to Lotus and enables multiple modules, such as:

  • Reputations module:
    • Miners index: with on-chain and metadata information.
    • Ask index: with an up-to-date information about available Storage Ask in the network.
    • Slashing index: contains a history of all miner-slashes.
  • Deals Module:
    • Contain helper features for making and watching deals.

Prerequisites

Currently, the server needs the same dependencies as Lotus, so most probably they will be already installed if you run the server in dev mode (go run syntax). If that's not the case, see here.

Run in dev mode

The server can be run in dev mode with go run exe/server/main.go.

Run in docker mode

You can run the server in a Docker Compose enviroment with Prometheus and Grafana to have a health-monitoring for the server. To do so:

cd docker
make fresh

This will do whatever it takes to get all systems running:

  • localhost:3000: Grafana dashboard with anonymous setup. admin:foobar are admin credentials.
  • localhost:9090: Prometheus enpoint.
  • localhost:8888: Server Prometheus endpoint for metric scraping.
  • localhost:8889: HTTP endpoint for current index values (index/miners, index/slashing, index/ask).

It's important to mention that the Docker Compose is run in host network mode, which is only supported in Linux. Eventually we'll include Lotus inside the compose file allowing for default network modes.

Test

For running tests: make test

Contributing

This project is a work in progress. As such, there's a few things you can do right now to help out:

  • Ask questions! We'll try to help. Be sure to drop a note (on the above issue) if there is anything you'd like to work on and we'll update the issue to let others know. Also get in touch on Slack.
  • Open issues, file issues, submit pull requests!
  • Perform code reviews. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
  • Take a look at the code. Contributions here that would be most helpful are top-level comments about how it should look based on your understanding. Again, the more eyes the better.
  • Add tests. There can never be enough tests.

Before you get started, be sure to read our contributors guide and our contributor covenant code of conduct.

Changelog

Changelog is published to Releases.

License

MIT

fil-tools's People

Contributors

jsign avatar asutula avatar dependabot-preview[bot] avatar andrewxhill avatar eightysteele avatar

Watchers

James Cloos 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.