2.1.1 • Published 1 year ago

@mvts/contract-interfaces-js v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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:

NameDescription
CuratorFully complies with the smart contract. Stores information about the actual root router.
RouterFully compliant with the router smart contract standard. Used to work with any router.
RootRouterFully 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