0.1.15 • Published 2 years ago

@verto/flex v0.1.15

Weekly downloads
-
License
https://github.co...
Repository
github
Last release
2 years ago

Installation

npm install @verto/flex

or

yarn add @verto/flex

Prerequisites

Your SmartWeave contract state MUST contain the following variables in order for the Verto Components to function properly:

{
  emergencyHaltWallet: "",
  halted: false,
  pairs: [],
  usedTransfers: [],
  invocations: [],
  foreignCalls: []
}

Usage

This framework includes the core functions necessary to give SmartWeave contracts the ability to embed and manage a central limit order book.

Import

To use the library, you'll need to import its functions

import {
  AddPair,
  CancelOrder,
  CreateOrder,
  Halt,
  ReadOutbox,
} from "@verto/flex";

Add a pair

const { newState, result } = await AddPair(state, action);
0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago