@polymarket/market-deploy-sdk
Advanced tools
Comparing version 0.0.5 to 0.0.6
import { JsonRpcSigner } from "@ethersproject/providers"; | ||
import { Wallet } from "ethers"; | ||
import { ethers, Wallet } from "ethers"; | ||
import { MarketInfo } from "./model"; | ||
import { FPMMResponse } from "@polymarket/fpmm-factory-sdk"; | ||
export declare const deployFPMM: (market: MarketInfo, signer: Wallet | JsonRpcSigner, conditionId: string, conditionalTokensAddress: string, collateralTokenAddress: string) => Promise<FPMMResponse>; | ||
export declare const deployFPMM: (market: MarketInfo, signer: Wallet | JsonRpcSigner, conditionId: string, conditionalTokensAddress: string, collateralTokenAddress: string, overrides?: ethers.Overrides | undefined) => Promise<FPMMResponse>; | ||
export { FPMMResponse } from "@polymarket/fpmm-factory-sdk"; | ||
//# sourceMappingURL=deploy.d.ts.map |
@@ -41,3 +41,3 @@ "use strict"; | ||
var fpmm_factory_sdk_1 = require("@polymarket/fpmm-factory-sdk"); | ||
var deployFPMM = function (market, signer, conditionId, conditionalTokensAddress, collateralTokenAddress) { return __awaiter(void 0, void 0, void 0, function () { | ||
var deployFPMM = function (market, signer, conditionId, conditionalTokensAddress, collateralTokenAddress, overrides) { return __awaiter(void 0, void 0, void 0, function () { | ||
var chainID, fpmmFactory; | ||
@@ -50,3 +50,3 @@ return __generator(this, function (_a) { | ||
fpmmFactory = new fpmm_factory_sdk_1.FpmmFactory(signer, chainID); | ||
return [2 /*return*/, fpmmFactory.deployFPMM(conditionalTokensAddress, collateralTokenAddress, [conditionId], market.fee)]; | ||
return [2 /*return*/, fpmmFactory.deployFPMM(conditionalTokensAddress, collateralTokenAddress, [conditionId], market.fee, overrides)]; | ||
} | ||
@@ -53,0 +53,0 @@ }); |
{ | ||
"name": "@polymarket/market-deploy-sdk", | ||
"description": "SDK to easily deploy new Polymarket markets", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51501