0.1.1 • Published 3 years ago

@verto/component v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Installation

npm install @verto/component

or

yarn add @verto/component

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 library implements the core functions necessary to give SmartWeave contracts the ability to manage a central limit order book.

Import

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

import * as verto from "@verto/component";

OR

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

Add a pair

const newState = await AddPair(state, action);
0.1.1

3 years ago

0.1.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago