@rholabs/rho-sdk
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -355,3 +355,6 @@ import { BrowserProvider, JsonRpcSigner, JsonRpcProvider, TransactionReceipt, Wallet, TransactionRequest } from "ethers"; | ||
liquidatePositions(params: LiquidatePositionParams): Promise<TransactionReceipt>; | ||
persistIndexAtMaturity(params: MarketFutureOracleParams): Promise<TransactionReceipt>; | ||
persistIndexAtMaturity(params: { | ||
futureId: string; | ||
oraclePackage: OraclePackage; | ||
}): Promise<TransactionReceipt>; | ||
executeTrade(params: ExecuteTradeParams, txRequestParams?: TransactionRequest): Promise<TransactionReceipt>; | ||
@@ -358,0 +361,0 @@ deposit(params: DepositParams): Promise<TransactionReceipt>; |
{ | ||
"name": "@rholabs/rho-sdk", | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"description": "Rho Protocol SDK", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -296,6 +296,9 @@ import { RouterABI, ViewABI, QuoterABI, ERC20ABI, ACMABI } from './abi' | ||
public async persistIndexAtMaturity(params: MarketFutureOracleParams): Promise<TransactionReceipt> { | ||
const { marketId, futureId } = params | ||
const oraclePackages = params.oraclePackages || [await this.getOraclePackage(marketId)] | ||
return await this.router.persistIndexAtMaturity(futureId, oraclePackages) | ||
public async persistIndexAtMaturity( | ||
params: { | ||
futureId: string, | ||
oraclePackage: OraclePackage | ||
} | ||
): Promise<TransactionReceipt> { | ||
return await this.router.persistIndexAtMaturity(params.futureId, params.oraclePackage) | ||
} | ||
@@ -302,0 +305,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5288784
15423