Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/numotrade/numo-ts

A typescript SDK for Numo markets.
https://github.com/numotrade/numo-ts

Last synced: 4 days ago
JSON representation

A typescript SDK for Numo markets.

Awesome Lists containing this project

README

        

# Numo.ts

Numo.ts is a TypeScript sdk for building web apps on Numo markets. Allowing you to efficiently buy or sell [european-style](https://en.wikipedia.org/wiki/European_option) call options on any `ERC-20` token.

It uses `reverse-mirage` to generate the TypeScript bindings from the Numo smart contracts.

## Installation

```bash
npm install --save @numotrade/numo-ts
```

## Getting Started

Instantiate your of Numo using your ethers provider:

### Examples

#### Through a RPC Provider (i.e. QuickNode)

```typescript
import { Numo } from "@numotrade/numo-ts";
import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);

const numo = new Numo(provider);
```

#### Exercising a ERC-20 call option