0.1.1 • Published 2 years ago

@verto/component v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
2 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

2 years ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago