@mvts/contract-interfaces-js
v2.1.1
Published
A set of interfaces for working with smart contracts of the routing system.
Downloads
9
Maintainers
Readme
@mvts/contract-interfaces-js
A set of interfaces for working with smart contracts of the routing system.
Installation
Using npm:
npm install @mvts/contract-interfaces-js
Using yarn:
yarn add @mvts/contract-interfaces-js
Interfaces
Interfaces for working with smart contracts:
| Name | Description | |------------|------------------------------------------------------------------------------------------| | Curator | Fully complies with the smart contract. Stores information about the actual root router. | | Router | Fully compliant with the router smart contract standard. Used to work with any router. | | RootRouter | Fully complies with the smart contract. The root router of the system. |
Detailed description of smart contracts and their methods: MVTS Documentation
For convenience, you can use factories that store the ABI of the corresponding smart contract:
const curator = CuratorFactory.connect(address, provider);
const router = RouterFactory.connect(address, provider);
const rootRouter = RootRouterFactory.connect(address, provider);