Numbers Prefer Multiplication

    @verto/flex
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    Verto logo (light version)

    Verto Flex

    An embeddable, programmable order book framework

    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);

    Keywords

    none

    Install

    npm i @verto/flex

    DownloadsWeekly Downloads

    25

    Version

    0.1.1

    License

    https://github.com/useverto/flex/blob/main/LICENSE

    Unpacked Size

    35.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • andreespirela
    • codingknite
    • martondev
    • tbaumer22
    • divy-work