@daohaus/moloch-v3-legos
Moloch v3 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.
Github (opens in a new tab)
Legos Types
- Form Legos (opens in a new tab): Instruct form builder to render forms.
- Field Legos (opens in a new tab): Instruct form builder to render fields inside forms.
- Transaction Legos (opens in a new tab): Provide the transaction schemas and prepare arguments for external smart contract calls.
- Contract Legos (opens in a new tab): Provide the contract addresses and ABIs required for external smart contract calls.
Related Packages
NPM (opens in a new tab)
Usage
Installation
yarn add @daohaus/moloch-v3-legos
Note: This package will most likely not be installed alone, instead it will be added when you install tx-builder or form-builder.
Examples
Build a form and fire a transaction
How to make a contract lego
How to make a transaction lego
How to make a field lego
How to make a form lego