Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quic-pro/mvts-contract-interfaces-js
A set of interfaces for working with smart contracts of the routing system.
https://github.com/quic-pro/mvts-contract-interfaces-js
blockchain mvts smartcontracts
Last synced: 4 days ago
JSON representation
A set of interfaces for working with smart contracts of the routing system.
- Host: GitHub
- URL: https://github.com/quic-pro/mvts-contract-interfaces-js
- Owner: quic-pro
- License: mit
- Created: 2022-12-25T17:31:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T08:07:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T21:54:23.447Z (7 days ago)
- Topics: blockchain, mvts, smartcontracts
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@mvts/contract-interfaces-js
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @mvts/contract-interfaces-js
A set of interfaces for working with smart contracts of the routing system.
## Installation
Using npm:
```bash
npm install @mvts/contract-interfaces-js
```Using yarn:
```bash
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](https://docs.mvts.io/smart-contracts)
For convenience, you can use factories that store the ABI of the corresponding smart contract:
```javascript
const curator = CuratorFactory.connect(address, provider);
const router = RouterFactory.connect(address, provider);
const rootRouter = RootRouterFactory.connect(address, provider);
```## License
[MIT](LICENSE)