@mvts/contract-interfaces-js
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

@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);

License

MIT

Package Sidebar

Install

npm i @mvts/contract-interfaces-js

Weekly Downloads

0

Version

2.1.1

License

MIT

Unpacked Size

163 kB

Total Files

25

Last publish

Collaborators

  • dev-quic-pro