Skip to content

Commit

Permalink
fix: correct import
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoDex committed Jul 2, 2024
1 parent 5ce1994 commit b91676c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compolabs/spark-orderbook-ts-sdk",
"version": "1.3.6",
"version": "1.3.7",
"type": "module",
"main": "./dist/index.сjs",
"module": "./dist/index.js",
Expand Down
9 changes: 9 additions & 0 deletions src/SparkOrderbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
SparkParams,
SpotOrderWithoutTimestamp,
TradeOrderEvent,
UserMarketBalance,
Volume,
WithdrawParams,
WriteTransactionResponse,
Expand Down Expand Up @@ -155,6 +156,14 @@ export class SparkOrderbook {
return this.read.fetchOrderIdsByAddress(trader, options);
};

fetchUserMarketBalance = async (
trader: Bech32Address,
): Promise<UserMarketBalance> => {
const options = await this.getFetchOptions();

return this.read.fetchUserMarketBalance(trader, options);
};

getProviderWallet = async () => {
const provider = await this.providerPromise;
return Wallet.generate({ provider });
Expand Down

0 comments on commit b91676c

Please sign in to comment.