Git Product home page Git Product logo

Comments (2)

peterbroadhurst avatar peterbroadhurst commented on June 7, 2024

This is great. Almost precisely lines up with work in progress on architecture and engineering fyi @nguyer @jimthematrix @awrichar

Custom tokens

For ERC20 as a token standard there is another thread of engineering, that's pretty advanced at this point, to support Tokens (fungible and non-fungible) including custom token implementations (ERC20/ERC721/ERC1155 derivatives).

This goes beyond pure custom on-chain logic support, by providing the the off-chain API per a standardized token model that can work across multiple token implementations, including across protocols.
Importantly, it includes packaging the work of building an off-chain cache of transaction history, that is prevalent in enterprise token based projects.

The architecture embraces the fact that tokens will need on-chain logic customization, and also that likely mapping to a common API will require some simple transformation of data structures / API calls. So there is an easy pluggable connector layer included -with a Typescript exemplar repo based on ERC1155 + OpenZeppelin + Ethconnect.

A demo + update was provided by @awrichar on the most recent FireFly community call, Sep 15th:
https://wiki.hyperledger.org/display/labs/2021-09-15+FireFly+Community+Call

Fully custom on-chain logic

Custom smart contract submission/event functionality is available directly in the APIs events of the connector layer - through ethconnect for Ethereum, and recently through fabconnect for Fabric.

There is active work in flight, to roll this up to the core FireFly API and provide suitable unification across protocols, while retaining the ability to exploit the full feature-set of an individual protocol. We waited for the first two protocols (Fabric and Ethereum) to be ready before attempting it for that reason - so it wasn't heavily biased to one individual protocol.

This includes, amongst other things:

  • How to broadcast definitions/existence of your smart contract to the FireFly network
  • Automated API generation from this definition
  • Managed event subscription from this definition
  • Plugin architecture to allow multiple protocols with individual connectors to map definitions, API calls and events

from firefly.

shorsher avatar shorsher commented on June 7, 2024

Implemented in v1.

https://hyperledger.github.io/firefly/tutorials/custom_contracts.html

from firefly.

Related Issues (20)

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.