open-index/open-npm huggingface dataset:
npm package: @predy/blackscholes
Description: black-scholes formula for liner bonding curve
Author: predy
Latest version: 0.1.3

Black-Scholes formula for Liner bonding curve
=====

![](https://github.com/predyprotocol/blackscholes/workflows/Test/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/predyprotocol/blackscholes/badge.svg?branch=main)](https://coveralls.io/github/predyprotocol/blackscholes?branch=main)
npm package: @predy/js-sdk
Description: js-sdk =====
Author: Predy
Latest version: 0.4.10

js-sdk
=====

![](https://github.com/predyprotocol/js-sdk/workflows/main/badge.svg)

A JavaScript SDK for the Predy Protocol.

## Example

### Sign order

```ts
const builder = new PerpDutchOrderBuilder(network.chainId, permit2Address);

const order = builder
    .validationData(0, 0, 0, 0)
    .deadline(10000)
    .nonce(1)
    .tradeAmount(BigNumber.from(100))
    .build();

const { domain, types, value} = order.permitData()
const signature = wallet._signTypedData(domain, types, values)

```