pmarket-cli
Version:
CLI tool to trade on Polymarket
18 lines (17 loc) • 799 B
TypeScript
import { ethers } from "ethers";
import { ConfigService } from "./config.service.js";
export declare class ContractService {
private configService;
polygonProvider: ethers.JsonRpcProvider;
wallet: ethers.Wallet | undefined;
constructor(configService: ConfigService);
setAllowance(amountOfAllowedUSDC: number): Promise<{
ctf: ethers.ContractTransactionResponse;
negRisk: ethers.ContractTransactionResponse;
negRiskAdapter: ethers.ContractTransactionResponse;
}>;
isStandardRedemption(conditionId: string): Promise<boolean>;
private rpcDelay;
redeemPositions(conditionId: string): Promise<ethers.ContractTransactionResponse>;
redeemNegRiskPositions(conditionId: string, amounts: bigint[]): Promise<ethers.ContractTransactionResponse>;
}