@polymarket/fpmm-factory-sdk
v0.0.2
Published
Lightweight SDK around the Polymarket FPMM Factory
Downloads
20
Readme
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")
);