timelock-sdk 0.0.190 → 0.0.192

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- const require_optionUtils = require('./optionUtils-Dj9hOtZo.cjs');
3
+ const require_optionUtils = require('./optionUtils-DsqMIDm1.cjs');
4
4
  const require_statelessStateView = require('./statelessStateView-Dl3QIl1g.cjs');
5
5
  const require_factory = require('./factory-DitVXzjQ.cjs');
6
6
  let viem = require("viem");
@@ -126,7 +126,9 @@ const GetMarketVolumeDocument = graphql_tag.default`
126
126
  address
127
127
  optionsCount
128
128
  tradersCount
129
- volume
129
+ totalVolume
130
+ totalPremium
131
+ totalProfit
130
132
  }
131
133
  }
132
134
  `;
@@ -493,7 +495,9 @@ const useMarketVolume = (marketAddr) => {
493
495
  return {
494
496
  ...result.TimelockMarket[0],
495
497
  address: result.TimelockMarket[0].address,
496
- volume: BigInt(result.TimelockMarket[0].volume),
498
+ totalVolume: BigInt(result.TimelockMarket[0].totalVolume),
499
+ totalPremium: BigInt(result.TimelockMarket[0].totalPremium),
500
+ totalProfit: BigInt(result.TimelockMarket[0].totalProfit),
497
501
  optionsCount: BigInt(result.TimelockMarket[0].optionsCount),
498
502
  tradersCount: BigInt(result.TimelockMarket[0].tradersCount)
499
503
  };