@daohaus/moloch-v3-legos
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@daohaus/moloch-v3-legos

Code Legos are static javascript objects that contain metadata used by Form Builder and Tx-Builder. The metadata is used to render UI elements, create transactions and interact with external smart contracts.

They allow you to create complex transactions and form UI.

Types of Code Legos

  • Form Legos: Instruct form builder to render forms.
  • Field Legos: Instruct form builder to render fields inside forms.
  • Transaction Legos: Provide the transaction schemas & prepare arguments for external smart contract calls.
  • Contract Legos: Provide the contract addresses and Application Binary Interfaces (ABIs) required for external smart contract calls.

Related packages

Usage

Installation

yarn add @daohaus/moloch-v3-legos

Examples

TODO: Link into new docs app when ready

Here is a tutorial on form and transaction building.

How to make a contract lego

How to make a field lego

How to make a transaction lego

How to make a form lego

Building

Run nx run moloch-v3-legos:build to build the library.

Readme

Keywords

none

Package Sidebar

Install

npm i @daohaus/moloch-v3-legos

Weekly Downloads

224

Version

0.5.0

License

none

Unpacked Size

105 kB

Total Files

17

Last publish

Collaborators

  • daohaus-protocol