@azuro-org/toolkit 6.0.0-beta.9 → 6.0.1
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/README.md +1 -2
- package/dist/docs/bets/bets.d.ts +2 -1
- package/dist/docs/bets/bettors.d.ts +1 -1
- package/dist/docs/bets/fragments/bet.d.ts +2 -1
- package/dist/docs/bets/fragments/bettor.d.ts +1 -1
- package/dist/docs/bets/fragments/legacyLiveBet.d.ts +1 -1
- package/dist/docs/bets/fragments/legacyPrematchBet.d.ts +1 -1
- package/dist/docs/bets/gameBets.d.ts +2 -2
- package/dist/docs/bets/legacyBets.d.ts +1 -1
- package/dist/docs/bets/types.d.ts +10 -10
- package/dist/docs/legacy-live-feed/games.d.ts +1 -1
- package/dist/docs/legacy-live-feed/types.d.ts +10 -10
- package/dist/index.js +31 -30
- package/dist/index.js.map +1 -1
- package/dist/utils/bet/createBet.d.ts +1 -1
- package/dist/utils/bet/createComboBet.d.ts +1 -1
- package/dist/utils/bet/getBet.d.ts +1 -1
- package/dist/utils/bet/getBetCalculation.d.ts +1 -1
- package/dist/utils/bet/getBetFee.d.ts +1 -1
- package/dist/utils/bet/getBetStatus.d.ts +1 -1
- package/dist/utils/bet/getBetTypedData.d.ts +1 -1
- package/dist/utils/bet/getBetsByBettor.d.ts +1 -1
- package/dist/utils/bet/getComboBetTypedData.d.ts +1 -1
- package/dist/utils/bonus/getAvailableFreebets.d.ts +1 -1
- package/dist/utils/bonus/getBonuses.d.ts +1 -1
- package/dist/utils/calcMinOdds.d.ts +1 -1
- package/dist/utils/cashout/createCashout.d.ts +1 -1
- package/dist/utils/cashout/getCalculatedCashout.d.ts +1 -1
- package/dist/utils/cashout/getCashout.d.ts +1 -1
- package/dist/utils/cashout/getCashoutTypedData.d.ts +1 -1
- package/dist/utils/cashout/getPrecalculatedCashouts.d.ts +1 -1
- package/dist/utils/feed/getConditionsByGameIds.d.ts +1 -1
- package/dist/utils/feed/getConditionsState.d.ts +1 -1
- package/dist/utils/feed/getGamesByFilters.d.ts +1 -1
- package/dist/utils/feed/getGamesByIds.d.ts +1 -1
- package/dist/utils/feed/getNavigation.d.ts +1 -1
- package/dist/utils/feed/getSports.d.ts +1 -1
- package/dist/utils/feed/searchGames.d.ts +1 -1
- package/dist/utils/getIsPendingResolution.d.ts +1 -1
- package/dist/utils/groupConditionsByMarket.d.ts +1 -1
- package/package.json +11 -12
- package/dist/docs/feed/condition.d.ts +0 -33
- package/dist/docs/feed/conditions.d.ts +0 -36
- package/dist/docs/feed/conditionsBatch.d.ts +0 -19
- package/dist/docs/feed/fragments/condition.d.ts +0 -27
- package/dist/docs/feed/fragments/gameInfo.d.ts +0 -40
- package/dist/docs/feed/game.d.ts +0 -46
- package/dist/docs/feed/games.d.ts +0 -50
- package/dist/docs/feed/navigation.d.ts +0 -45
- package/dist/docs/feed/sports.d.ts +0 -72
- package/dist/docs/feed/sportsNavigation.d.ts +0 -23
- package/dist/docs/feed/types.d.ts +0 -2415
- package/dist/helpers/gqlRequest.d.ts +0 -8
package/README.md
CHANGED
|
@@ -14,10 +14,9 @@ npm i --save @azuro-org/toolkit
|
|
|
14
14
|
```
|
|
15
15
|
@azuro-org/dictionaries@^3.0.28
|
|
16
16
|
graphql-tag@^2.12.6
|
|
17
|
-
@wagmi/core@^2.20.3
|
|
18
17
|
viem@^2.37.4
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
## Documentation
|
|
22
21
|
|
|
23
|
-
Package documentation can be found in our [Doc](https://gem.azuro.org/hub/apps/toolkit
|
|
22
|
+
Package documentation can be found in our [Doc](https://gem.azuro.org/hub/apps/toolkit)
|
package/dist/docs/bets/bets.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type BetsQuery = {
|
|
|
29
29
|
createdAt: string;
|
|
30
30
|
resolvedAt?: string | null;
|
|
31
31
|
txHash: string;
|
|
32
|
+
redeemedAt?: string | null;
|
|
32
33
|
core: {
|
|
33
34
|
__typename?: 'CoreContract';
|
|
34
35
|
address: string;
|
|
@@ -62,4 +63,4 @@ export type BetsQuery = {
|
|
|
62
63
|
} | null;
|
|
63
64
|
}>;
|
|
64
65
|
};
|
|
65
|
-
export declare const BetsDocument: import("graphql").DocumentNode;
|
|
66
|
+
export declare const BetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -22,6 +22,7 @@ export type BetFragment = {
|
|
|
22
22
|
createdAt: string;
|
|
23
23
|
resolvedAt?: string | null;
|
|
24
24
|
txHash: string;
|
|
25
|
+
redeemedAt?: string | null;
|
|
25
26
|
core: {
|
|
26
27
|
__typename?: 'CoreContract';
|
|
27
28
|
address: string;
|
|
@@ -54,4 +55,4 @@ export type BetFragment = {
|
|
|
54
55
|
payout: string;
|
|
55
56
|
} | null;
|
|
56
57
|
};
|
|
57
|
-
export declare const BetFragmentDoc: import("graphql").DocumentNode;
|
|
58
|
+
export declare const BetFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
2
|
export type GameBetsQueryVariables = Types.Exact<{
|
|
3
|
-
gameId: Types.Scalars['
|
|
3
|
+
gameId: Types.Scalars['String']['input'];
|
|
4
4
|
actor?: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
5
5
|
}>;
|
|
6
6
|
export type GameBetsQuery = {
|
|
@@ -78,4 +78,4 @@ export type GameBetsQuery = {
|
|
|
78
78
|
} | null;
|
|
79
79
|
}>;
|
|
80
80
|
};
|
|
81
|
-
export declare const GameBetsDocument: import("graphql").DocumentNode;
|
|
81
|
+
export declare const GameBetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -42,24 +42,24 @@ export type Scalars = {
|
|
|
42
42
|
output: number;
|
|
43
43
|
};
|
|
44
44
|
BigDecimal: {
|
|
45
|
-
input:
|
|
46
|
-
output:
|
|
45
|
+
input: string;
|
|
46
|
+
output: string;
|
|
47
47
|
};
|
|
48
48
|
BigInt: {
|
|
49
|
-
input:
|
|
50
|
-
output:
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
51
|
};
|
|
52
52
|
Bytes: {
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
55
|
};
|
|
56
56
|
Int8: {
|
|
57
|
-
input:
|
|
58
|
-
output:
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
59
|
};
|
|
60
60
|
Timestamp: {
|
|
61
|
-
input:
|
|
62
|
-
output:
|
|
61
|
+
input: string;
|
|
62
|
+
output: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export type AffiliateMonthly = {
|
|
@@ -42,24 +42,24 @@ export type Scalars = {
|
|
|
42
42
|
output: number;
|
|
43
43
|
};
|
|
44
44
|
BigDecimal: {
|
|
45
|
-
input:
|
|
46
|
-
output:
|
|
45
|
+
input: string;
|
|
46
|
+
output: string;
|
|
47
47
|
};
|
|
48
48
|
BigInt: {
|
|
49
|
-
input:
|
|
50
|
-
output:
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
51
|
};
|
|
52
52
|
Bytes: {
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
55
|
};
|
|
56
56
|
Int8: {
|
|
57
|
-
input:
|
|
58
|
-
output:
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
59
|
};
|
|
60
60
|
Timestamp: {
|
|
61
|
-
input:
|
|
62
|
-
output:
|
|
61
|
+
input: string;
|
|
62
|
+
output: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export declare enum Aggregation_Interval {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {bsc,bscTestnet,baseSepolia,base,spicy,chiliz,polygonAmoy,polygon,gnosis}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";
|
|
@@ -6466,6 +6466,7 @@ var EventRestrictionState;
|
|
|
6466
6466
|
resolvedAt: resolvedBlockTimestamp
|
|
6467
6467
|
txHash: createdTxHash
|
|
6468
6468
|
redeemedTxHash
|
|
6469
|
+
redeemedAt: redeemedBlockTimestamp
|
|
6469
6470
|
affiliate
|
|
6470
6471
|
isRedeemed
|
|
6471
6472
|
isRedeemable
|
|
@@ -6530,8 +6531,8 @@ var EventRestrictionState;
|
|
|
6530
6531
|
}
|
|
6531
6532
|
${LegacyPrematchBetFragmentDoc}
|
|
6532
6533
|
${LegacyLiveBetFragmentDoc}`;const GameBetsDocument = gql `
|
|
6533
|
-
query GameBets($gameId:
|
|
6534
|
-
bets(where: {
|
|
6534
|
+
query GameBets($gameId: String!, $actor: String) {
|
|
6535
|
+
bets(where: {_games_contains: [$gameId], actor: $actor}) {
|
|
6535
6536
|
rawAmount
|
|
6536
6537
|
rawPotentialPayout
|
|
6537
6538
|
result
|
|
@@ -7444,7 +7445,7 @@ const getProviderFromId = (id) => {
|
|
|
7444
7445
|
return +value;
|
|
7445
7446
|
}
|
|
7446
7447
|
const [int, digits] = value.split('.');
|
|
7447
|
-
if (!
|
|
7448
|
+
if (!digits?.length || digits.length < digitsCount) {
|
|
7448
7449
|
return +(int || 0);
|
|
7449
7450
|
}
|
|
7450
7451
|
return +`${int}.${digits.slice(0, digitsCount)}`;
|
|
@@ -7453,7 +7454,7 @@ const getProviderFromId = (id) => {
|
|
|
7453
7454
|
* Calculates the minimum acceptable odds considering slippage for single or combo bets.
|
|
7454
7455
|
* For combo bets, applies fee modifiers and multiplies individual odds to calculate total odds.
|
|
7455
7456
|
*
|
|
7456
|
-
* - Docs: https://
|
|
7457
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/calcMinOdds
|
|
7457
7458
|
*
|
|
7458
7459
|
* @example
|
|
7459
7460
|
* import { calcMindOdds } from '@azuro-org/toolkit'
|
|
@@ -7501,7 +7502,7 @@ const normalizeTimestampToMs = (timestamp) => {
|
|
|
7501
7502
|
* Determines if a game is pending resolution after completion.
|
|
7502
7503
|
* Returns true if the game is in Live state but has exceeded the expected resolution window (100 minutes after start).
|
|
7503
7504
|
*
|
|
7504
|
-
* - Docs: https://
|
|
7505
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/getIsPendingResolution
|
|
7505
7506
|
*
|
|
7506
7507
|
* @example
|
|
7507
7508
|
* import { getIsPendingResolution, GameState } from '@azuro-org/toolkit'
|
|
@@ -7524,7 +7525,7 @@ const getIsPendingResolution = ({ state, startsAt }) => {
|
|
|
7524
7525
|
* Groups game conditions by their market types and sorts them according to sport-specific ordering.
|
|
7525
7526
|
* It processes outcomes to include selection names, handles duplicate conditions, and organizes data for display.
|
|
7526
7527
|
*
|
|
7527
|
-
* - Docs: https://
|
|
7528
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/groupConditionsByMarket
|
|
7528
7529
|
*
|
|
7529
7530
|
* @example
|
|
7530
7531
|
* import { groupConditionsByMarket } from '@azuro-org/toolkit'
|
|
@@ -7678,7 +7679,7 @@ const filterLastGames = (games) => {
|
|
|
7678
7679
|
* Determines the current status of a bet based on order state, on-chain status, and game states.
|
|
7679
7680
|
* Returns a unified bet status that combines API order state and blockchain data.
|
|
7680
7681
|
*
|
|
7681
|
-
* - Docs: https://
|
|
7682
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetStatus
|
|
7682
7683
|
*
|
|
7683
7684
|
* @example
|
|
7684
7685
|
* import { getBetStatus, BetStatus } from '@azuro-org/toolkit'
|
|
@@ -7727,7 +7728,7 @@ const getBetStatus = (props) => {
|
|
|
7727
7728
|
* Retrieves the current relayer fee information for placing bets on a specific chain.
|
|
7728
7729
|
* Returns gas price, bet token rate, and calculated relayer fee amount.
|
|
7729
7730
|
*
|
|
7730
|
-
* - Docs: https://
|
|
7731
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetFee
|
|
7731
7732
|
*
|
|
7732
7733
|
* @example
|
|
7733
7734
|
* import { getBetFee } from '@azuro-org/toolkit'
|
|
@@ -7752,7 +7753,7 @@ const getBetFee = async (chainId) => {
|
|
|
7752
7753
|
* Generates EIP-712 typed data for signing a single (ordinary) bet.
|
|
7753
7754
|
* This typed data is used with wallet signing methods to create a bet signature.
|
|
7754
7755
|
*
|
|
7755
|
-
* - Docs: https://
|
|
7756
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetTypedData
|
|
7756
7757
|
*
|
|
7757
7758
|
* @example
|
|
7758
7759
|
* import { getBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -7812,7 +7813,7 @@ const getBetTypedData = (props) => {
|
|
|
7812
7813
|
* Generates EIP-712 typed data for signing a combo (parlay) bet.
|
|
7813
7814
|
* This typed data is used with wallet signing methods to create a combo bet signature.
|
|
7814
7815
|
*
|
|
7815
|
-
* - Docs: https://
|
|
7816
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getComboBetTypedData
|
|
7816
7817
|
*
|
|
7817
7818
|
* @example
|
|
7818
7819
|
* import { getComboBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -7874,7 +7875,7 @@ const getComboBetTypedData = (props) => {
|
|
|
7874
7875
|
* Creates a single (ordinary) bet by submitting signed bet data to the Azuro API.
|
|
7875
7876
|
* This function sends the bet order to the relayer which will then place the bet on-chain.
|
|
7876
7877
|
*
|
|
7877
|
-
* - Docs: https://
|
|
7878
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createBet
|
|
7878
7879
|
*
|
|
7879
7880
|
* @example
|
|
7880
7881
|
* import { createBet } from '@azuro-org/toolkit'
|
|
@@ -7934,7 +7935,7 @@ const createBet = async (props) => {
|
|
|
7934
7935
|
* Creates a combo (parlay) bet by submitting signed bet data to the Azuro API.
|
|
7935
7936
|
* This function sends the combo bet order to the relayer which will then place the bet on-chain.
|
|
7936
7937
|
*
|
|
7937
|
-
* - Docs: https://
|
|
7938
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createComboBet
|
|
7938
7939
|
*
|
|
7939
7940
|
* @example
|
|
7940
7941
|
* import { createComboBet } from '@azuro-org/toolkit'
|
|
@@ -7999,7 +8000,7 @@ const createComboBet = async (props) => {
|
|
|
7999
8000
|
* Retrieves bet order data by order ID from the Azuro API.
|
|
8000
8001
|
* Returns null if the bet order is not found.
|
|
8001
8002
|
*
|
|
8002
|
-
* - Docs: https://
|
|
8003
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBet
|
|
8003
8004
|
*
|
|
8004
8005
|
* @example
|
|
8005
8006
|
* import { getBet } from '@azuro-org/toolkit'
|
|
@@ -8030,7 +8031,7 @@ const getBet = async ({ chainId, orderId }) => {
|
|
|
8030
8031
|
* User's account is required to provide the **correct** maximum bet amount.
|
|
8031
8032
|
* It may be undefined if the user isn't logged in.
|
|
8032
8033
|
*
|
|
8033
|
-
* - Docs: https://
|
|
8034
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetCalculation
|
|
8034
8035
|
*
|
|
8035
8036
|
* @example
|
|
8036
8037
|
* import { getBetCalculation } from '@azuro-org/toolkit'
|
|
@@ -8089,7 +8090,7 @@ function serializeApiParams(struct) {
|
|
|
8089
8090
|
* Retrieves all bet orders for a specific bettor address with optional filtering.
|
|
8090
8091
|
* Supports pagination and filtering by state, result, affiliate, and redemption status.
|
|
8091
8092
|
*
|
|
8092
|
-
* - Docs: https://
|
|
8093
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetsByBettor
|
|
8093
8094
|
*
|
|
8094
8095
|
* @example
|
|
8095
8096
|
* import { getBetsByBettor } from '@azuro-org/toolkit'
|
|
@@ -8140,7 +8141,7 @@ const getBetsByBettor = async (props) => {
|
|
|
8140
8141
|
* Fetches detailed conditions data for a given list of game IDs.
|
|
8141
8142
|
* Returns comprehensive condition information including outcomes, odds, and game relationships.
|
|
8142
8143
|
*
|
|
8143
|
-
* - Docs: https://
|
|
8144
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsByGameIds
|
|
8144
8145
|
*
|
|
8145
8146
|
* @example
|
|
8146
8147
|
* import { getConditionsByGameIds } from '@azuro-org/toolkit'
|
|
@@ -8177,7 +8178,7 @@ const getConditionsByGameIds = async (props) => {
|
|
|
8177
8178
|
};/**
|
|
8178
8179
|
* Fetches up-to-date condition states and outcome odds for a list of conditions.
|
|
8179
8180
|
*
|
|
8180
|
-
* - Docs: https://
|
|
8181
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsState
|
|
8181
8182
|
*
|
|
8182
8183
|
* @example
|
|
8183
8184
|
* import { getConditionsState } from '@azuro-org/toolkit'
|
|
@@ -8217,7 +8218,7 @@ const getConditionsState = async (props) => {
|
|
|
8217
8218
|
* Fetches games by applying various filters such as sport, league, or game state.
|
|
8218
8219
|
* Returns paginated results ideal for building sport/country/league listing pages.
|
|
8219
8220
|
*
|
|
8220
|
-
* - Docs: https://
|
|
8221
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByFilters
|
|
8221
8222
|
*
|
|
8222
8223
|
* @example
|
|
8223
8224
|
* import { GameState, getGamesByFilters } from '@azuro-org/toolkit'
|
|
@@ -8262,7 +8263,7 @@ const getGamesByFilters = async (props) => {
|
|
|
8262
8263
|
* Fetches game data for a specific list of game IDs.
|
|
8263
8264
|
* Returns detailed information for each requested game including participants, timing, and league data.
|
|
8264
8265
|
*
|
|
8265
|
-
* - Docs: https://
|
|
8266
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByIds
|
|
8266
8267
|
*
|
|
8267
8268
|
* @example
|
|
8268
8269
|
* import { getGamesByIds } from '@azuro-org/toolkit'
|
|
@@ -8301,7 +8302,7 @@ const getGamesByIds = async (props) => {
|
|
|
8301
8302
|
* Fetches navigation structure with sports, countries, and leagues hierarchy.
|
|
8302
8303
|
* Returns active game counts at each level for building navigation menus.
|
|
8303
8304
|
*
|
|
8304
|
-
* - Docs: https://
|
|
8305
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getNavigation
|
|
8305
8306
|
*
|
|
8306
8307
|
* @example
|
|
8307
8308
|
* import { getNavigation } from '@azuro-org/toolkit'
|
|
@@ -8342,7 +8343,7 @@ const getNavigation = async (props) => {
|
|
|
8342
8343
|
* Fetches a complete sports hierarchy including countries, leagues, and games.
|
|
8343
8344
|
* Returns nested structure with all games organized by sport, country, and league.
|
|
8344
8345
|
*
|
|
8345
|
-
* - Docs: https://
|
|
8346
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getSports
|
|
8346
8347
|
*
|
|
8347
8348
|
* @example
|
|
8348
8349
|
* import { GameState, getSports } from '@azuro-org/toolkit'
|
|
@@ -8386,7 +8387,7 @@ const getSports = async (props) => {
|
|
|
8386
8387
|
* Searches for games by text query across game titles, leagues, and countries.
|
|
8387
8388
|
* The minimum query length is 3 characters. Returns paginated results.
|
|
8388
8389
|
*
|
|
8389
|
-
* - Docs: https://
|
|
8390
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/searchGames
|
|
8390
8391
|
*
|
|
8391
8392
|
* @example
|
|
8392
8393
|
* import { searchGames } from '@azuro-org/toolkit'
|
|
@@ -8532,7 +8533,7 @@ const getWaveLevels = async ({ waveId, chainId } = { waveId: 'active', chainId:
|
|
|
8532
8533
|
* Retrieves precalculated cashout availability and prices for specified conditions.
|
|
8533
8534
|
* Returns margin information and outcome prices for each available condition.
|
|
8534
8535
|
*
|
|
8535
|
-
* - Docs: https://
|
|
8536
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getPrecalculatedCashouts
|
|
8536
8537
|
*
|
|
8537
8538
|
* @example
|
|
8538
8539
|
* import { getPrecalculatedCashouts } from '@azuro-org/toolkit'
|
|
@@ -8582,7 +8583,7 @@ const getPrecalculatedCashouts = async (props) => {
|
|
|
8582
8583
|
* Retrieves the calculated cashout information for a specific bet, including the cashout amount and odds.
|
|
8583
8584
|
* Returns null if no cashout calculation is available for the bet.
|
|
8584
8585
|
*
|
|
8585
|
-
* - Docs: https://
|
|
8586
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCalculatedCashout
|
|
8586
8587
|
*
|
|
8587
8588
|
* @example
|
|
8588
8589
|
* import { getCalculatedCashout } from '@azuro-org/toolkit'
|
|
@@ -8636,7 +8637,7 @@ const getCalculatedCashout = async (props) => {
|
|
|
8636
8637
|
* Generates EIP-712 typed data for signing a cashout order.
|
|
8637
8638
|
* This typed data must be signed by the user before submitting the cashout.
|
|
8638
8639
|
*
|
|
8639
|
-
* - Docs: https://
|
|
8640
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashoutTypedData
|
|
8640
8641
|
*
|
|
8641
8642
|
* @example
|
|
8642
8643
|
* import { getCashoutTypedData } from '@azuro-org/toolkit'
|
|
@@ -8701,7 +8702,7 @@ const getCashoutTypedData = (props) => {
|
|
|
8701
8702
|
* Creates a cashout order for an existing bet by submitting the signed cashout calculation to the Azuro API.
|
|
8702
8703
|
* This finalizes the cashout process after obtaining a calculation and signing the typed data.
|
|
8703
8704
|
*
|
|
8704
|
-
* - Docs: https://
|
|
8705
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/createCashout
|
|
8705
8706
|
*
|
|
8706
8707
|
* @example
|
|
8707
8708
|
* import { createCashout } from '@azuro-org/toolkit'
|
|
@@ -8753,7 +8754,7 @@ const createCashout = async (props) => {
|
|
|
8753
8754
|
* Retrieves the status and details of a cashout order by its order ID.
|
|
8754
8755
|
* Returns null if the cashout order is not found.
|
|
8755
8756
|
*
|
|
8756
|
-
* - Docs: https://
|
|
8757
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashout
|
|
8757
8758
|
*
|
|
8758
8759
|
* @example
|
|
8759
8760
|
* import { getCashout } from '@azuro-org/toolkit'
|
|
@@ -8786,7 +8787,7 @@ const getCashout = async ({ chainId, orderId }) => {
|
|
|
8786
8787
|
* Fetches all bonuses for a bettor account filtered by status.
|
|
8787
8788
|
* By default, retrieves only available bonuses. Returns null if no bonuses are found.
|
|
8788
8789
|
*
|
|
8789
|
-
* - Docs: https://
|
|
8790
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getBonuses
|
|
8790
8791
|
*
|
|
8791
8792
|
* @example
|
|
8792
8793
|
* import { getBonuses, BonusStatus } from '@azuro-org/toolkit'
|
|
@@ -8866,7 +8867,7 @@ const getBonuses = async (props) => {
|
|
|
8866
8867
|
* Retrieves available freebets for a bettor that can be applied to specific bet selections.
|
|
8867
8868
|
* Returns null if no freebets are available for the given selections.
|
|
8868
8869
|
*
|
|
8869
|
-
* - Docs: https://
|
|
8870
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getAvailableFreebets
|
|
8870
8871
|
*
|
|
8871
8872
|
* @example
|
|
8872
8873
|
* import { getAvailableFreebets } from '@azuro-org/toolkit'
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -18,7 +18,7 @@ export type CreateBetResult = CreateBetResponse;
|
|
|
18
18
|
* Creates a single (ordinary) bet by submitting signed bet data to the Azuro API.
|
|
19
19
|
* This function sends the bet order to the relayer which will then place the bet on-chain.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createBet
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { createBet } from '@azuro-org/toolkit'
|
|
@@ -18,7 +18,7 @@ export type CreateComboBetResult = CreateBetResponse;
|
|
|
18
18
|
* Creates a combo (parlay) bet by submitting signed bet data to the Azuro API.
|
|
19
19
|
* This function sends the combo bet order to the relayer which will then place the bet on-chain.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createComboBet
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { createComboBet } from '@azuro-org/toolkit'
|
|
@@ -10,7 +10,7 @@ export type GetBetResult = GetBetResponse | null;
|
|
|
10
10
|
* Retrieves bet order data by order ID from the Azuro API.
|
|
11
11
|
* Returns null if the bet order is not found.
|
|
12
12
|
*
|
|
13
|
-
* - Docs: https://
|
|
13
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBet
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* import { getBet } from '@azuro-org/toolkit'
|
|
@@ -20,7 +20,7 @@ export type GetBetCalculationResult = GetBetCalculationResponse['response'];
|
|
|
20
20
|
* User's account is required to provide the **correct** maximum bet amount.
|
|
21
21
|
* It may be undefined if the user isn't logged in.
|
|
22
22
|
*
|
|
23
|
-
* - Docs: https://
|
|
23
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetCalculation
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { getBetCalculation } from '@azuro-org/toolkit'
|
|
@@ -17,7 +17,7 @@ export type GetBetFeeResult = BetFeeResponse;
|
|
|
17
17
|
* Retrieves the current relayer fee information for placing bets on a specific chain.
|
|
18
18
|
* Returns gas price, bet token rate, and calculated relayer fee amount.
|
|
19
19
|
*
|
|
20
|
-
* - Docs: https://
|
|
20
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetFee
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* import { getBetFee } from '@azuro-org/toolkit'
|
|
@@ -22,7 +22,7 @@ type Props = {
|
|
|
22
22
|
* Determines the current status of a bet based on order state, on-chain status, and game states.
|
|
23
23
|
* Returns a unified bet status that combines API order state and blockchain data.
|
|
24
24
|
*
|
|
25
|
-
* - Docs: https://
|
|
25
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetStatus
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* import { getBetStatus, BetStatus } from '@azuro-org/toolkit'
|
|
@@ -16,7 +16,7 @@ export type GetBetTypedDataParams = {
|
|
|
16
16
|
* Generates EIP-712 typed data for signing a single (ordinary) bet.
|
|
17
17
|
* This typed data is used with wallet signing methods to create a bet signature.
|
|
18
18
|
*
|
|
19
|
-
* - Docs: https://
|
|
19
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetTypedData
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* import { getBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -23,7 +23,7 @@ export type GetBetsByBettorResult = (BetOrderData & {
|
|
|
23
23
|
* Retrieves all bet orders for a specific bettor address with optional filtering.
|
|
24
24
|
* Supports pagination and filtering by state, result, affiliate, and redemption status.
|
|
25
25
|
*
|
|
26
|
-
* - Docs: https://
|
|
26
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetsByBettor
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* import { getBetsByBettor } from '@azuro-org/toolkit'
|
|
@@ -16,7 +16,7 @@ export type GetComboBetTypedDataParams = {
|
|
|
16
16
|
* Generates EIP-712 typed data for signing a combo (parlay) bet.
|
|
17
17
|
* This typed data is used with wallet signing methods to create a combo bet signature.
|
|
18
18
|
*
|
|
19
|
-
* - Docs: https://
|
|
19
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getComboBetTypedData
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* import { getComboBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -18,7 +18,7 @@ export type GetAvailableFreebets = Freebet[] | null;
|
|
|
18
18
|
* Retrieves available freebets for a bettor that can be applied to specific bet selections.
|
|
19
19
|
* Returns null if no freebets are available for the given selections.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getAvailableFreebets
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { getAvailableFreebets } from '@azuro-org/toolkit'
|
|
@@ -59,7 +59,7 @@ export type GetBonusesParams = {
|
|
|
59
59
|
* Fetches all bonuses for a bettor account filtered by status.
|
|
60
60
|
* By default, retrieves only available bonuses. Returns null if no bonuses are found.
|
|
61
61
|
*
|
|
62
|
-
* - Docs: https://
|
|
62
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getBonuses
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* import { getBonuses, BonusStatus } from '@azuro-org/toolkit'
|
|
@@ -6,7 +6,7 @@ export type CalcMinOddsParams = {
|
|
|
6
6
|
* Calculates the minimum acceptable odds considering slippage for single or combo bets.
|
|
7
7
|
* For combo bets, applies fee modifiers and multiplies individual odds to calculate total odds.
|
|
8
8
|
*
|
|
9
|
-
* - Docs: https://
|
|
9
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/calcMinOdds
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* import { calcMindOdds } from '@azuro-org/toolkit'
|
|
@@ -22,7 +22,7 @@ export type CreateCashoutParams = {
|
|
|
22
22
|
* Creates a cashout order for an existing bet by submitting the signed cashout calculation to the Azuro API.
|
|
23
23
|
* This finalizes the cashout process after obtaining a calculation and signing the typed data.
|
|
24
24
|
*
|
|
25
|
-
* - Docs: https://
|
|
25
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/createCashout
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* import { createCashout } from '@azuro-org/toolkit'
|
|
@@ -23,7 +23,7 @@ export type GetCalculatedCashoutParams = {
|
|
|
23
23
|
* Retrieves the calculated cashout information for a specific bet, including the cashout amount and odds.
|
|
24
24
|
* Returns null if no cashout calculation is available for the bet.
|
|
25
25
|
*
|
|
26
|
-
* - Docs: https://
|
|
26
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCalculatedCashout
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* import { getCalculatedCashout } from '@azuro-org/toolkit'
|
|
@@ -12,7 +12,7 @@ export type GetCashoutParams = {
|
|
|
12
12
|
* Retrieves the status and details of a cashout order by its order ID.
|
|
13
13
|
* Returns null if the cashout order is not found.
|
|
14
14
|
*
|
|
15
|
-
* - Docs: https://
|
|
15
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashout
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { getCashout } from '@azuro-org/toolkit'
|