@polymarket/fpmm-factory-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @polymarket/fpmm-factory-sdk

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

28.1 kB

Total Files

31

Last publish

Collaborators

  • poly-rodr
  • esinger93457
  • jonamen
  • l-kov
  • sherrbss
  • mttwlkr
  • mshrieve
  • niraek
  • chloe-tan
  • schestakov
  • nickbytes
  • javamonnnn
  • legate