@azuro-org/toolkit 5.1.0-beta.1 → 5.1.0-beta.2
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/index.js +24 -19
- package/dist/index.js.map +1 -0
- package/package.json +6 -8
package/dist/index.js
CHANGED
|
@@ -5832,7 +5832,7 @@ const environments = {
|
|
|
5832
5832
|
// endpointNameByChainId[gnosis.id] = 'gnosis-dev'
|
|
5833
5833
|
// endpointNameByChainId[polygonAmoy.id] = 'polygon-amoy-dev'
|
|
5834
5834
|
// }
|
|
5835
|
-
const
|
|
5835
|
+
const isDevChain = (chainId) => {
|
|
5836
5836
|
return (chainId === polygonAmoy.id ||
|
|
5837
5837
|
chainId === spicy.id ||
|
|
5838
5838
|
chainId === baseSepolia.id);
|
|
@@ -5843,7 +5843,7 @@ const getBetsGraphqlEndpoint = (chainId) => (`https://thegraph.onchainfeed.org/s
|
|
|
5843
5843
|
* @deprecated Only for v2 feed
|
|
5844
5844
|
*/
|
|
5845
5845
|
const getLegacyLiveGraphqlEndpoint = (chainId) => {
|
|
5846
|
-
if (
|
|
5846
|
+
if (isDevChain(chainId)) {
|
|
5847
5847
|
return 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed-dev';
|
|
5848
5848
|
}
|
|
5849
5849
|
// if (chainId === polygonAmoy.id) {
|
|
@@ -5852,7 +5852,7 @@ const getLegacyLiveGraphqlEndpoint = (chainId) => {
|
|
|
5852
5852
|
return 'https://thegraph.azuro.org/subgraphs/name/azuro-protocol/azuro-api-live-data-feed';
|
|
5853
5853
|
};
|
|
5854
5854
|
const getSocketEndpoint = (chainId) => {
|
|
5855
|
-
if (
|
|
5855
|
+
if (isDevChain(chainId)) {
|
|
5856
5856
|
return 'wss://dev-streams.onchainfeed.org/v1/streams';
|
|
5857
5857
|
}
|
|
5858
5858
|
// if (chainId === polygonAmoy.id) {
|
|
@@ -5861,7 +5861,7 @@ const getSocketEndpoint = (chainId) => {
|
|
|
5861
5861
|
return 'wss://streams.onchainfeed.org/v1/streams';
|
|
5862
5862
|
};
|
|
5863
5863
|
const getApiEndpoint = (chainId) => {
|
|
5864
|
-
if (
|
|
5864
|
+
if (isDevChain(chainId)) {
|
|
5865
5865
|
return 'https://dev-api.onchainfeed.org/api/v1/public';
|
|
5866
5866
|
}
|
|
5867
5867
|
// if (chainId === polygonAmoy.id) {
|
|
@@ -8307,7 +8307,7 @@ const createCashout = async (props) => {
|
|
|
8307
8307
|
const data = await response.json();
|
|
8308
8308
|
return data;
|
|
8309
8309
|
};const getBonuses = async ({ chainId, account, affiliate }) => {
|
|
8310
|
-
const { api
|
|
8310
|
+
const { api } = chainsData[chainId];
|
|
8311
8311
|
const response = await fetch(`${api}/bonus/get-by-addresses`, {
|
|
8312
8312
|
method: 'POST',
|
|
8313
8313
|
headers: {
|
|
@@ -8326,20 +8326,25 @@ const createCashout = async (props) => {
|
|
|
8326
8326
|
throw new Error(`Status ${response.status}: ${response.statusText}`);
|
|
8327
8327
|
}
|
|
8328
8328
|
const { bonuses } = await response.json();
|
|
8329
|
-
return bonuses.
|
|
8329
|
+
return bonuses.reduce((acc, bonus) => {
|
|
8330
8330
|
const environment = `${bonus.network}${bonus.currency}`;
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8331
|
+
const { chain, betToken } = chainsDataByEnv[environment];
|
|
8332
|
+
// TODO: need to add environement to request params
|
|
8333
|
+
if (chain.id === chainId) {
|
|
8334
|
+
acc.push({
|
|
8335
|
+
id: bonus.id,
|
|
8336
|
+
amount: formatUnits(BigInt(bonus.amount), betToken.decimals),
|
|
8337
|
+
type: bonus.bonusType,
|
|
8338
|
+
params: bonus.freebetParam,
|
|
8339
|
+
status: bonus.status,
|
|
8340
|
+
chainId: chain.id,
|
|
8341
|
+
expiresAt: +new Date(bonus.expiresAt),
|
|
8342
|
+
usedAt: +new Date(bonus.usedAt),
|
|
8343
|
+
createdAt: +new Date(bonus.createdAt),
|
|
8344
|
+
});
|
|
8345
|
+
}
|
|
8346
|
+
return acc;
|
|
8347
|
+
}, []);
|
|
8343
8348
|
};const getAvailableFreebets = async ({ chainId, account, affiliate, selections }) => {
|
|
8344
8349
|
const { api, environment, betToken } = chainsData[chainId];
|
|
8345
8350
|
const response = await fetch(`${api}/bonus/freebet/get-available`, {
|
|
@@ -8379,4 +8384,4 @@ const createCashout = async (props) => {
|
|
|
8379
8384
|
createdAt: +new Date(bonus.createdAt),
|
|
8380
8385
|
};
|
|
8381
8386
|
});
|
|
8382
|
-
};export{Aggregation_Interval,BET_DATA_TYPES,ConditionStatus as BetConditionStatus,BetFragmentDoc,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,Event_OrderBy,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,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}
|
|
8387
|
+
};export{Aggregation_Interval,BET_DATA_TYPES,ConditionStatus as BetConditionStatus,BetFragmentDoc,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,Event_OrderBy,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,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azuro-org/toolkit",
|
|
3
|
-
"version": "5.1.0-beta.
|
|
3
|
+
"version": "5.1.0-beta.2",
|
|
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",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gql:cleanup": "rimraf src/docs/**/*.ts src/docs/**/**/*.ts",
|
|
16
16
|
"gql": "npm run gql:cleanup & graphql-codegen",
|
|
17
17
|
"dev": "rollup -cw",
|
|
18
|
-
"build": "rimraf ./dist && npm run gql && rollup -c --compact",
|
|
18
|
+
"build": "rimraf ./dist && npm run gql && tsc --emitDeclarationOnly && rollup -c --compact",
|
|
19
19
|
"prepublishOnly": "npm run build",
|
|
20
20
|
"------------------ Lint --------------------------------------------------------------------------------": "",
|
|
21
21
|
"lint": "next lint && tsc --noEmit",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"homepage": "https://github.com/Azuro-protocol/toolkit#readme",
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@azuro-org/dictionaries": "^3.0.27",
|
|
44
|
-
"graphql-tag": "^2.12.6",
|
|
45
44
|
"@wagmi/core": "^2.17.2",
|
|
45
|
+
"graphql-tag": "^2.12.6",
|
|
46
46
|
"viem": "^2.30.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
"@graphql-codegen/typescript": "^4.1.2",
|
|
53
53
|
"@graphql-codegen/typescript-document-nodes": "^4.0.12",
|
|
54
54
|
"@graphql-codegen/typescript-operations": "^4.4.0",
|
|
55
|
-
"@rollup/plugin-
|
|
56
|
-
"@rollup/plugin-commonjs": "^23.0.3",
|
|
55
|
+
"@rollup/plugin-commonjs": "^23.0.7",
|
|
57
56
|
"@rollup/plugin-json": "^4.1.0",
|
|
58
57
|
"@types/node": "^17.0.21",
|
|
59
58
|
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
@@ -63,10 +62,9 @@
|
|
|
63
62
|
"eslint-plugin-import": "^2.29.1",
|
|
64
63
|
"minimist": "^1.2.7",
|
|
65
64
|
"rimraf": "^3.0.2",
|
|
66
|
-
"rollup": "^2.
|
|
67
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
65
|
+
"rollup": "^2.79.2",
|
|
68
66
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
69
67
|
"tslib": "^2.4.1",
|
|
70
|
-
"typescript": "^5.
|
|
68
|
+
"typescript": "^5.8.3"
|
|
71
69
|
}
|
|
72
70
|
}
|