Socket
Book a DemoInstallSign in
Socket

@polymarket/uma-ctf-adapter-sdk

Package Overview
Dependencies
Maintainers
10
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymarket/uma-ctf-adapter-sdk

SDK for the UMA CTF Adapter

latest
npmnpm
Version
0.0.10
Version published
Weekly downloads
324
12.5%
Maintainers
10
Weekly downloads
 
Created
Source

Polymarket UMA CTF Adapter SDK

Lightweight wrapper SDK around the UmaCtfAdapter contracts.

Usage

import { ClientV1, ClientV2, ClientV3 } from "@polymarket/uma-ctf-adapter-sdk";
const signer = new Wallet("0x" + process.env.KEY);
const v2 = new ClientV2(signer, 137);
const v3 = new ClientV3(signer, 137);

// Initialize question on v2 client
await v2.initialize(
    title, 
    description,
    outcomes, 
    rewardToken, 
    reward, 
    bond
);

// Initialize question on v3 client
await v3.initialize(
    title,
    desc,
    outcomes,
    rewardToken,
    reward,
    bond,
    liveness
)

// Resolve the question
await v3.resolve(questionID);

Keywords

blockchain

FAQs

Package last updated on 08 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts