0.0.10 • Published 9 months ago

@polymarket/uma-ctf-adapter-sdk v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

9 months ago

0.0.9

11 months ago

0.0.8

1 year ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago