1.0.15 • Published 3 years ago

@polymarket/registry-v0-sdk v1.0.15

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

Registry SDK npm

The Polymarket registry sdk (@polymarket/registry-v0-sdk) provides an easy-to-use, lightweight wrapper around the MarketRegistryVZero contract.

Installation

The sdk can be easily installed using yarn with the following command:

yarn add @polymarket/registry-v0-sdk

Usage

The sdk provides importable types.

import { Market } from "@polymarket/registry-v0-sdk";

Primarily though, the sdk allows a Registry object to be initialized with a signer (JsonRpcSigner) and a chainID (number). This object provides a simple interface to various registry contract functions and utilities.

import { Registry } from "@polymarket/registry-v0-sdk";

registry = new Registry(signer, 1);

const markets = await registry.getMarkets();

You can refer to the registry sdk source code for available functions and types.

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago