New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@foxone/memo-encode

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxone/memo-encode

Pando memo proto

latest
npmnpm
Version
0.3.4
Version published
Maintainers
4
Created
Source

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

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts