You can use mosaic.js to interact with contracts on mosaic chains.
It requires mosaic-contracts for ABIs and BINs of contracts.
- Library is provided via npm package @openstfoundation/mosaic.js
- Now provides a
Mosaic
"super" provider to access both chains and their contract addresses (#44). - Now provides a
Facilitator
class for easier interaction (#42, #51, #56). - Now provides contract classes to interact with the contracts:
- New Setup module simplifies deployment (see also documentation) (#119).
- ProofGenerator is now exposed to consumers (#124).
- Non-private functions no longer start with an underscore (#97).
- ABIs and BINs are now accessed as a dependency on mosaic-contracts (#39).
web3
andweb3-eth-accounts
are now peer dependencies (#85).Utils.sendTransaction()
is now exposed to the consumer (#135).- Stake helper now accepts value token in the constructor (#140).