@azuro-org/toolkit 5.1.6 → 5.2.0-beta.0

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/config.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Environment } from './envs';
2
2
  import { type ChainData } from './global';
3
3
  export declare const ODDS_DECIMALS = 12;
4
+ export declare const ODDS_COMBO_FEE_MODIFIER = 0.99;
4
5
  export declare const CLIENT_DATA_TYPES: readonly [{
5
6
  readonly name: "attention";
6
7
  readonly type: "string";
package/dist/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export { createBet } from './utils/createBet';
17
17
  export { createComboBet } from './utils/createComboBet';
18
18
  export { getBet, type GetBetResponse } from './utils/getBet';
19
19
  export { getMaxBet, type GetMaxBetResponse } from './utils/getMaxBet';
20
+ export { getBetCalculation, type GetBetCalculationResponse } from './utils/getBetCalculation';
20
21
  export { getWaveLevels, WaveLevelName, type WaveLevelData, type WaveLevelsResponse } from './utils/wave/getWaveLevels';
21
22
  export { getWaveStats, type WaveStatsResponse } from './utils/wave/getWaveStats';
22
23
  export { getWavePeriods, type WavePeriodsResponse } from './utils/wave/getWavePeriods';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import {gnosis,polygon,polygonAmoy,chiliz,spicy,base,baseSepolia,bscTestnet,bsc}from'viem/chains';import gql from'graphql-tag';import {getMarketKey,getMarketName,getMarketDescription,dictionaries,getSelectionName}from'@azuro-org/dictionaries';import {parseUnits,formatUnits}from'viem';var Environment;
1
+ import {gnosis,polygon,polygonAmoy,chiliz,spicy,base,baseSepolia,bscTestnet,bsc}from'viem/chains';import gql from'graphql-tag';import {getMarketKey,getMarketName,getMarketDescription,dictionaries,getSelectionName}from'@azuro-org/dictionaries';import {isAddress,parseUnits,formatUnits}from'viem';var Environment;
2
2
  (function (Environment) {
3
3
  Environment["GnosisDevXDAI"] = "GnosisDevXDAI";
4
4
  Environment["GnosisXDAI"] = "GnosisXDAI";
@@ -5876,6 +5876,7 @@ const getApiEndpoint = (chainId) => {
5876
5876
  // }
5877
5877
  return 'https://api.onchainfeed.org/api/v1/public';
5878
5878
  };const ODDS_DECIMALS = 12;
5879
+ const ODDS_COMBO_FEE_MODIFIER = 0.99;
5879
5880
  const CLIENT_DATA_TYPES = [
5880
5881
  { name: 'attention', type: 'string' },
5881
5882
  { name: 'affiliate', type: 'address' },
@@ -7790,9 +7791,24 @@ var _SubgraphErrorPolicy_;
7790
7791
  })(_SubgraphErrorPolicy_ || (_SubgraphErrorPolicy_ = {}));const CONDITION_PROVIDER_LENGTH = 3;
7791
7792
  const getProviderFromId = (id) => {
7792
7793
  return +(id.slice(1, 1 + CONDITION_PROVIDER_LENGTH));
7793
- };const calcMindOdds = (props) => {
7794
- const totalOdds = typeof props.odds === 'number' ? props.odds : props.odds.reduce((acc, odds) => acc * +odds, 1);
7795
- const minOdds = 1 + (totalOdds - 1) * (100 - props.slippage) / 100;
7794
+ };const formatToFixed = (value, digitsCount) => {
7795
+ value = String(value);
7796
+ if (!/\./.test(value)) {
7797
+ return +value;
7798
+ }
7799
+ const [int, digits] = value.split('.');
7800
+ return +`${int}.${digits.substr(0, digitsCount)}`;
7801
+ };const adjustSubBetOdds = (value) => Math.ceil(+value / ODDS_COMBO_FEE_MODIFIER * 100) / 100;
7802
+ const calcMindOdds = (props) => {
7803
+ let totalOdds;
7804
+ if (typeof props.odds === 'number') {
7805
+ totalOdds = props.odds;
7806
+ }
7807
+ else {
7808
+ const comboOdds = props.odds.reduce((acc, odds) => acc * adjustSubBetOdds(odds), 1);
7809
+ totalOdds = formatToFixed(comboOdds * ODDS_COMBO_FEE_MODIFIER, 2);
7810
+ }
7811
+ const minOdds = formatToFixed(1 + (totalOdds - 1) * (100 - props.slippage) / 100, 2);
7796
7812
  return minOdds.toFixed(ODDS_DECIMALS);
7797
7813
  };const getIsPendingResolution = ({ state, startsAt }) => {
7798
7814
  if (state !== GameState.Live) {
@@ -8127,7 +8143,8 @@ const getBetStatus = (props) => {
8127
8143
  }
8128
8144
  const data = await response.json();
8129
8145
  return data;
8130
- };const getMaxBet = async (props) => {
8146
+ };/** @deprecated use `getBetCalculation` instead */
8147
+ const getMaxBet = async (props) => {
8131
8148
  const { chainId, selections } = props;
8132
8149
  const { api, environment } = chainsData[chainId];
8133
8150
  const response = await fetch(`${api}/bet/calculation`, {
@@ -8152,6 +8169,35 @@ const getBetStatus = (props) => {
8152
8169
  }
8153
8170
  const data = await response.json();
8154
8171
  return data.response;
8172
+ };const getBetCalculation = async (props) => {
8173
+ const { chainId, selections, account } = props;
8174
+ const { api, environment } = chainsData[chainId];
8175
+ const params = {
8176
+ bets: selections.map(({ conditionId, outcomeId }) => ({
8177
+ conditionId,
8178
+ outcomeId: +outcomeId,
8179
+ })),
8180
+ environment,
8181
+ };
8182
+ if (account && isAddress(account)) {
8183
+ params.wallet = account;
8184
+ }
8185
+ const response = await fetch(`${api}/bet/calculation_new`, {
8186
+ method: 'POST',
8187
+ headers: {
8188
+ 'Accept': 'application/json',
8189
+ 'Content-Type': 'application/json',
8190
+ },
8191
+ body: JSON.stringify(params),
8192
+ });
8193
+ if (response.status === 404) {
8194
+ return null;
8195
+ }
8196
+ if (!response.ok) {
8197
+ throw new Error(`Status ${response.status}: ${response.statusText}`);
8198
+ }
8199
+ const data = await response.json();
8200
+ return data.response;
8155
8201
  };var WaveLevelName;
8156
8202
  (function (WaveLevelName) {
8157
8203
  WaveLevelName["Grey"] = "Grey";
@@ -8507,4 +8553,4 @@ const createCashout = async (props) => {
8507
8553
  publicCustomData: bonus.publicCustomData,
8508
8554
  };
8509
8555
  });
8510
- };export{Aggregation_Interval,BET_DATA_TYPES,ConditionStatus as BetConditionStatus,BetFragmentDoc,BetRestrictionType,BetResult,BetState,BetStatus,V3_Bet_OrderBy as Bet_OrderBy,BetsDocument,BettorFragmentDoc,BettorsDocument,BonusStatus,BonusType,CASHOUT_DATA_TYPES,CASHOUT_TYPED_DATA_DOMAIN_NAME,CASHOUT_TYPED_DATA_DOMAIN_VERSION,CLIENT_DATA_TYPES,COMBO_BET_DATA_TYPES,CashoutState,ConditionDocument,ConditionFragmentDoc,ConditionState,Condition_OrderBy,ConditionsBatchDocument,ConditionsDocument,Country_OrderBy,Environment,EventName,EventRestrictionState,Event_OrderBy,FreebetType,GameBetsDocument,GameDocument,GameInfoFragmentDoc,GameState,Game_OrderBy,GamesDocument,BetStatus$1 as GraphBetStatus,League_OrderBy,LegacyBetsDocument,GameStatus as LegacyGameStatus,LegacyLiveBetFragmentDoc,LegacyLiveGamesDocument,LegacyPrematchBetFragmentDoc,Bet_OrderBy as Legacy_Bet_OrderBy,NavigationDocument,ODDS_DECIMALS,OrderDirection,OutcomeResult,Outcome_OrderBy,Participant_OrderBy,V3_SelectionConditionKind as SelectionKind,SelectionResult,SportHub_OrderBy,Sport_OrderBy,SportsDocument,SportsNavigationDocument,TYPED_DATA_DOMAIN_NAME,TYPED_DATA_DOMAIN_VERSION,VirtualCondition_OrderBy,VirtualGame_OrderBy,WaveLevelName,_SubgraphErrorPolicy_,activateWave,azuroBetAbi,baseData,baseSepoliaData,bscData,bscTestnetData,calcMindOdds,cashoutAbi,chainsData,chainsDataByEnv,chilizData,coreAbi,createBet,createCashout,createComboBet,environments,getApiEndpoint,getAvailableFreebets,getBet,getBetFee,getBetStatus,getBetTypedData,getBetsGraphqlEndpoint,getBonuses,getCalculatedCashout,getCashout,getCashoutTypedData,getComboBetTypedData,getFeedGraphqlEndpoint,getIsPendingResolution,getMaxBet,getPrecalculatedCashouts,getProviderFromId,getSocketEndpoint,getWaveLeaderBoard,getWaveLevels,getWavePeriods,getWaveStats,gnosisData,gnosisDevData,groupConditionsByMarket,lpAbi,paymasterAbi,polygonAmoyData,polygonData,relayerAbi,setupContracts,spicyData,vaultAbi};//# sourceMappingURL=index.js.map
8556
+ };export{Aggregation_Interval,BET_DATA_TYPES,ConditionStatus as BetConditionStatus,BetFragmentDoc,BetRestrictionType,BetResult,BetState,BetStatus,V3_Bet_OrderBy as Bet_OrderBy,BetsDocument,BettorFragmentDoc,BettorsDocument,BonusStatus,BonusType,CASHOUT_DATA_TYPES,CASHOUT_TYPED_DATA_DOMAIN_NAME,CASHOUT_TYPED_DATA_DOMAIN_VERSION,CLIENT_DATA_TYPES,COMBO_BET_DATA_TYPES,CashoutState,ConditionDocument,ConditionFragmentDoc,ConditionState,Condition_OrderBy,ConditionsBatchDocument,ConditionsDocument,Country_OrderBy,Environment,EventName,EventRestrictionState,Event_OrderBy,FreebetType,GameBetsDocument,GameDocument,GameInfoFragmentDoc,GameState,Game_OrderBy,GamesDocument,BetStatus$1 as GraphBetStatus,League_OrderBy,LegacyBetsDocument,GameStatus as LegacyGameStatus,LegacyLiveBetFragmentDoc,LegacyLiveGamesDocument,LegacyPrematchBetFragmentDoc,Bet_OrderBy as Legacy_Bet_OrderBy,NavigationDocument,ODDS_COMBO_FEE_MODIFIER,ODDS_DECIMALS,OrderDirection,OutcomeResult,Outcome_OrderBy,Participant_OrderBy,V3_SelectionConditionKind as SelectionKind,SelectionResult,SportHub_OrderBy,Sport_OrderBy,SportsDocument,SportsNavigationDocument,TYPED_DATA_DOMAIN_NAME,TYPED_DATA_DOMAIN_VERSION,VirtualCondition_OrderBy,VirtualGame_OrderBy,WaveLevelName,_SubgraphErrorPolicy_,activateWave,azuroBetAbi,baseData,baseSepoliaData,bscData,bscTestnetData,calcMindOdds,cashoutAbi,chainsData,chainsDataByEnv,chilizData,coreAbi,createBet,createCashout,createComboBet,environments,getApiEndpoint,getAvailableFreebets,getBet,getBetCalculation,getBetFee,getBetStatus,getBetTypedData,getBetsGraphqlEndpoint,getBonuses,getCalculatedCashout,getCashout,getCashoutTypedData,getComboBetTypedData,getFeedGraphqlEndpoint,getIsPendingResolution,getMaxBet,getPrecalculatedCashouts,getProviderFromId,getSocketEndpoint,getWaveLeaderBoard,getWaveLevels,getWavePeriods,getWaveStats,gnosisData,gnosisDevData,groupConditionsByMarket,lpAbi,paymasterAbi,polygonAmoyData,polygonData,relayerAbi,setupContracts,spicyData,vaultAbi};//# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,23 @@
1
+ import { type Address } from 'viem';
2
+ import { type ChainId } from '../config';
3
+ import { type Selection } from '../global';
4
+ export type GetBetCalculationResponse = {
5
+ response: {
6
+ /** if `minBet` is `undefined`, there is no bottom limit */
7
+ minBet: number | undefined;
8
+ maxBet: number;
9
+ maxPayout: `${number}`;
10
+ };
11
+ };
12
+ type GetBetCalculation = {
13
+ chainId: ChainId;
14
+ selections: Selection[];
15
+ account: Address | undefined;
16
+ };
17
+ export declare const getBetCalculation: (props: GetBetCalculation) => Promise<{
18
+ /** if `minBet` is `undefined`, there is no bottom limit */
19
+ minBet: number | undefined;
20
+ maxBet: number;
21
+ maxPayout: `${number}`;
22
+ } | null>;
23
+ export {};
@@ -10,6 +10,7 @@ type Props = {
10
10
  chainId: ChainId;
11
11
  selections: Selection[];
12
12
  };
13
+ /** @deprecated use `getBetCalculation` instead */
13
14
  export declare const getMaxBet: (props: Props) => Promise<{
14
15
  maxBet: string;
15
16
  maxPayout: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/toolkit",
3
- "version": "5.1.6",
3
+ "version": "5.2.0-beta.0",
4
4
  "description": "This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",