Giter VIP home page Giter VIP logo

fat-js's People

Contributors

drkatz avatar paulbernier avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fat-js's Issues

Add support for pending balances and pending transactions

fatd 1.0 is now supposed to support both pending balances and transactions and I believe this does require some changes in fat-js to be supported. If not, a short explanation of how to use it would be welcomed and the issue can be closed. Thanks!

Self sending transactions are rejected

fatd 1.0 authorize an address to be both in input and output but fat-js reject those transactions with errors Output address already occurs in inputs or Input address already occurs in inputs

pkSignature method of Builders throw wrong errors when PK not found

Those conditions are always true:
https://github.com/Factom-Asset-Tokens/fat-js/blob/development/0/TransactionBuilder.js#L281
https://github.com/Factom-Asset-Tokens/fat-js/blob/development/1/TransactionBuilder.js#L307
because findIndex returns -1 when the element is not found: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex
Because of that the method with throw Cannot set property 'publicKey' of undefined which is hard to interpret for a user of the library.

No default protocol for the cli

There is no default protocol when building the cli which result in having by default an endpoint defined as undefined://localhost:8078/v1.
The protocol should either default to http or the builder should fail when trying to build a cli without the protocol being set.

Lib allows to build invalid transaction with repeated address

In both FAT0 and FAT1 standard it is not possible for an address to appear twice across both inputs and outputs. fat-js library should prevent building such a transaction and throw as early as possible when detecting the user is building an incorrect transaction.

0 amount transactions are rejected

fatd 1.0 allows for fat 0 and fat 1 transaction with 0/empty input/output but fat-js reject them with errors like Input amount must be a positive nonzero integer.

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.