1.1.0 • Published 2 years ago

@zondax/fvm-as-bindgen v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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: