0.0.2 • Published 1 year ago

@polymarket/fpmm-factory-sdk v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

fpmm-factory-sdk

Lightweight wrapper around the Polymarket FPMM Factory contracts

Usage

import { FpmmFactory } from "@polymarket/fpmm-factory-sdk";
import { ethers } from "ethers";

const signer = new Wallet("0x" + process.env.KEY);
const factory = new FpmmFactory(signer, 137);

// Deploy fpmm
await factory.deployFPMM(
    conditionalTokensAddress, 
    usdc,
    [conditionId], 
    ethers.BigNumber.from("200")
);
0.0.2

1 year ago

0.0.1

1 year ago