GithubHelp home page GithubHelp logo

00mjk / filecoin-paych-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomclose/filecoin-paych-manager

0.0 0.0 0.0 85 KB

Experimenting with Filecoin's payment channels

JavaScript 9.91% TypeScript 90.09%

filecoin-paych-manager's Introduction

Filecoin Payment Channel Investigations

I'm using this codebase to invesigate interacting with filecoin payment channels. Currently I'm trying (and failing 😕) to get a payment channel to open.

Reproducing the problem

I've followed the instructions here to setup a local lotus devnet:

▶ git clone [email protected]:filecoin-shipyard/lotus-devnet.git
▶ cd lotus-devnet
▶ git rev-parse --short HEAD
73b3ebe
▶ make devnet BIGSECTORS=false

To get going with this codebase you'll need node and yarn installed. You can then run

▶ yarn

to install the dependencies and then yarn start to run this code.

I'd expect this to open a payment channel. Instead I get an error with ExitCode: 16.

▶ yarn start
yarn run v1.19.0
$ npx ts-node src/index.ts
Address t3sikvkvgsbzdasjmjkh26i4jfe6mk6xty2dzs5ii4k2lpnqai3dfiu5eyilkomyvis42dxifkk3k563au7eza
New address t3rt742bwfnlmm2tp4ci6s3o6b5uyd6ep6rrufq74wicnmqstqmpcf7rucwn6giuhuh7lhkflthx5zbuf3nvwq
Result of paychGet: {
  Channel: '<empty>',
  ChannelMessage: {
    '/': 'bafy2bzacedyhjxzxxiyzs7dhgovd7b6soxribmi4nbxercosgpe3vleue44mg'
  }
}
Waiting for ChannelMessage to be mined {
  Channel: '<empty>',
  ChannelMessage: {
    '/': 'bafy2bzacedyhjxzxxiyzs7dhgovd7b6soxribmi4nbxercosgpe3vleue44mg'
  }
}
ChannelMessage mined {
  Receipt: { ExitCode: 16, Return: '', GasUsed: 1713 },
  TipSet: { Cids: [ [Object] ], Blocks: [ [Object] ], Height: 306 }
}
✨  Done in 5.53s.

filecoin-paych-manager's People

Contributors

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