@foxone/memo-encode
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

Pando Memo Encoding Proto

This typescript repo provide implementation of Pando Memo Encoding Proto

Usage

Here is an example for converting swap params to base64 formated memo:

import { swap as MemoEncoder } from "@foxone/memo-encode";

// swap encode
const params = {
  follow_id: uuid(),
  fill_asset_id: uuid(),
  minimum: 1.00001,
  route_hash: "xyz",
  members: [],
};

// base64 memo for mixin transaction
const memo = MemoEncoder.encodeSwapMemo(params);

Other functions and params please read source code from src/index.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @foxone/memo-encode

Weekly Downloads

5

Version

0.3.4

License

MIT

Unpacked Size

2.06 MB

Total Files

48

Last publish

Collaborators

  • zhangyh4382
  • lyricat
  • divisey
  • bobby.li