https://github.com/leask/mvm-memo
Use to `Encode` and `Decode` memoes in mvm invoking.
https://github.com/leask/mvm-memo
Last synced: 9 months ago
JSON representation
Use to `Encode` and `Decode` memoes in mvm invoking.
- Host: GitHub
- URL: https://github.com/leask/mvm-memo
- Owner: Leask
- Created: 2022-03-30T01:55:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T03:52:58.000Z (almost 4 years ago)
- Last Synced: 2025-02-04T13:43:51.733Z (11 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MVM-MEMO
Use to `Encode` and `Decode` memoes in mvm invoking.
The goal is to be compatible with the [mvm go version](https://github.com/MixinNetwork/trusted-group/tree/master/mvm/encoding).
## How to use
### Install
```bash
npm install mvm-memo
```
### Use as a ES6 module
```javascript
import { operation } from 'mvm-memo';
const memo = operation.encode({
purpose: 'OPERATION_PURPOSE_GROUP_EVENT',
process: '9a34bd64-afcb-11ec-b909-0242ac120002',
extra: '01ed9b9ba580000000000000000000000000000000000000000e35fd4acef14e2b00b9d0cd000000000000000000000000',
});
```
## TODO
- [ ] Adding decoder for operation-coder
- [ ] Support event-coder