@azuro-org/toolkit 5.1.6 → 5.1.8
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 +1 -0
- package/dist/index.js +29 -13
- package/dist/index.js.map +1 -1
- package/dist/utils/getEndpoints.d.ts +3 -3
- package/package.json +1 -1
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.js
CHANGED
|
@@ -5844,38 +5844,39 @@ const isDevChain = (chainId) => {
|
|
|
5844
5844
|
chainId === baseSepolia.id ||
|
|
5845
5845
|
chainId === bscTestnet.id);
|
|
5846
5846
|
};
|
|
5847
|
-
const getFeedGraphqlEndpoint = (chainId) => (`https://thegraph-1.
|
|
5848
|
-
const getBetsGraphqlEndpoint = (chainId) => (`https://thegraph.
|
|
5847
|
+
const getFeedGraphqlEndpoint = (chainId) => (`https://thegraph-1.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-data-feed-${endpointNameByChainId[chainId]}`);
|
|
5848
|
+
const getBetsGraphqlEndpoint = (chainId) => (`https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-${endpointNameByChainId[chainId]}-v3`);
|
|
5849
5849
|
/**
|
|
5850
5850
|
* @deprecated Only for v2 feed
|
|
5851
5851
|
*/
|
|
5852
5852
|
const getLegacyLiveGraphqlEndpoint = (chainId) => {
|
|
5853
5853
|
if (isDevChain(chainId)) {
|
|
5854
|
-
return 'https://thegraph.
|
|
5854
|
+
return 'https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev';
|
|
5855
5855
|
}
|
|
5856
5856
|
// if (chainId === polygonAmoy.id) {
|
|
5857
|
-
// return 'https://thegraph.
|
|
5857
|
+
// return 'https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-preprod'
|
|
5858
5858
|
// }
|
|
5859
|
-
return 'https://thegraph.
|
|
5859
|
+
return 'https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-live-data-feed';
|
|
5860
5860
|
};
|
|
5861
5861
|
const getSocketEndpoint = (chainId) => {
|
|
5862
5862
|
if (isDevChain(chainId)) {
|
|
5863
|
-
return 'wss://dev-streams.
|
|
5863
|
+
return 'wss://dev-streams.chainfeedon.com/v1/streams';
|
|
5864
5864
|
}
|
|
5865
5865
|
// if (chainId === polygonAmoy.id) {
|
|
5866
5866
|
// return 'wss://preprod-streams.azuro.org/v1/streams'
|
|
5867
5867
|
// }
|
|
5868
|
-
return 'wss://streams.
|
|
5868
|
+
return 'wss://streams.chainfeedon.com/v1/streams';
|
|
5869
5869
|
};
|
|
5870
5870
|
const getApiEndpoint = (chainId) => {
|
|
5871
5871
|
if (isDevChain(chainId)) {
|
|
5872
|
-
return 'https://dev-api.
|
|
5872
|
+
return 'https://dev-api.chainfeedon.com/api/v1/public';
|
|
5873
5873
|
}
|
|
5874
5874
|
// if (chainId === polygonAmoy.id) {
|
|
5875
5875
|
// return 'https://preprod-api.azuro.org/api/v1/public'
|
|
5876
5876
|
// }
|
|
5877
|
-
return 'https://api.
|
|
5877
|
+
return 'https://api.chainfeedon.com/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
|
|
7794
|
-
|
|
7795
|
-
|
|
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) {
|
|
@@ -8507,4 +8523,4 @@ const createCashout = async (props) => {
|
|
|
8507
8523
|
publicCustomData: bonus.publicCustomData,
|
|
8508
8524
|
};
|
|
8509
8525
|
});
|
|
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
|
|
8526
|
+
};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,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":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,6 +4,6 @@ export declare const getBetsGraphqlEndpoint: (chainId: ChainId) => string;
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Only for v2 feed
|
|
6
6
|
*/
|
|
7
|
-
export declare const getLegacyLiveGraphqlEndpoint: (chainId: ChainId) => "https://thegraph.
|
|
8
|
-
export declare const getSocketEndpoint: (chainId: ChainId) => "wss://dev-streams.
|
|
9
|
-
export declare const getApiEndpoint: (chainId: ChainId) => "https://dev-api.
|
|
7
|
+
export declare const getLegacyLiveGraphqlEndpoint: (chainId: ChainId) => "https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev" | "https://thegraph.chainfeedon.com/subgraphs/name/azuro-protocol/azuro-api-live-data-feed";
|
|
8
|
+
export declare const getSocketEndpoint: (chainId: ChainId) => "wss://dev-streams.chainfeedon.com/v1/streams" | "wss://streams.chainfeedon.com/v1/streams";
|
|
9
|
+
export declare const getApiEndpoint: (chainId: ChainId) => "https://dev-api.chainfeedon.com/api/v1/public" | "https://api.chainfeedon.com/api/v1/public";
|
package/package.json
CHANGED