Git Product home page Git Product logo

fvm-as-bindgen's Introduction

FVM AssemblyScript Bindgen

License GithubActions


zondax_light zondax_dark

Please visit our website at zondax.ch


Goal

This projects aims to abstract as much fvm-related logic as it could from used-defined smart contracts in Filecoin network. Thanks to the ability to provide custom transformation class to the AS compiler, code strictly related to FVM can be added before compiling the smart contract code to WASM.

How to build it

You just need to run these two steps

yarn install
yarn build

How to use it

These are a series of decorators you should set on your smart contract in order to tag files, functions and classes the package will process.

  • Use to indicate which class should be used as smart contract state
// @ts-ignore
@state
  • Use to indicate the function that will be executed on smart contract instantiation
// @ts-ignore
@constructor
  • Use to indicate functions that will be exported so that they can be called from the outside world
  • They will be set as method to be invoked.
// @ts-ignore
@export_method()

Foundational projects

Packages used to build this lib:

fvm-as-bindgen's People

Contributors

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