Contract utilities wrap the contracts and provides addresses and ABIs for the deployed contracts. ABIs are the
These utilities are cross-correlated to Write DAO Data. They will help you make function calls and write data to the contracts.
The Baal contract services are helpers that serve the deployed contract addresses being used by your network. For example, retrieving the Moloch v3 contract address for the Goerli network.
This library wraps your contracts providing type protection for the arguments you need. This will help you make contract calls from your app. This is one way that our SDK facillitates writing contract data easier. It is combined with Transaction Builder in the form of a React application.
Provides two functions for retrieving contract information. The first function,
getContractAddressesForChain, takes a contract key and a network ID as parameters and returns the address of the contract deployed on that network. The second function,
getContractAbi takes a contract ABI key as a parameter and returns the ABI for that contract.
Imports various utility functions, and then defines a function for encoding data to be passed to a smart contract. It also defines a function for initializing smart contract parameters.
Function that takes in an object with three properties:
data. The function estimates gas usage for a safe transaction using the Gnosis Gas Estimation API. If the API returns an error, the function throws an error.
MolochV3Contract class with static methods for creating an instance of the class and for submitting and processing proposals.
MolochV3SummonerContract class with methods to deploy a Moloch v3 DAO.