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