@azuro-org/toolkit 4.5.4 → 5.0.0-beta.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 +3 -3
- package/dist/abis/{PrematchComboCore.d.ts → AzuroBet.d.ts} +158 -319
- package/dist/abis/Cashback.d.ts +302 -0
- package/dist/abis/Cashout.d.ts +424 -0
- package/dist/abis/{PrematchCore.d.ts → Core.d.ts} +548 -340
- package/dist/abis/LP.d.ts +218 -650
- package/dist/abis/Relayer.d.ts +393 -0
- package/dist/abis/index.d.ts +4 -4
- package/dist/config.d.ts +78 -15
- package/dist/docs/bets/bets.d.ts +64 -0
- package/dist/docs/bets/fragments/bet.d.ts +54 -0
- package/dist/docs/{prematch/fragments/liveBet.d.ts → bets/fragments/legacyLiveBet.d.ts} +2 -2
- package/dist/docs/{prematch/fragments/prematchBet.d.ts → bets/fragments/legacyPrematchBet.d.ts} +2 -2
- package/dist/docs/{prematch → bets}/gameBets.d.ts +2 -0
- package/dist/docs/{prematch/liveBets.d.ts → bets/legacyLiveBets.d.ts} +3 -3
- package/dist/docs/{prematch/prematchBets.d.ts → bets/legacyPrematchBets.d.ts} +3 -3
- package/dist/docs/{prematch → bets}/types.d.ts +1719 -15
- package/dist/docs/{prematch → feed}/condition.d.ts +6 -13
- package/dist/docs/{live → feed}/conditions.d.ts +10 -4
- package/dist/docs/{prematch → feed}/conditionsBatch.d.ts +4 -4
- package/dist/docs/{prematch → feed}/fragments/condition.d.ts +5 -12
- package/dist/docs/feed/fragments/gameInfo.d.ts +31 -0
- package/dist/docs/{prematch → feed}/game.d.ts +10 -10
- package/dist/docs/{prematch → feed}/games.d.ts +7 -7
- package/dist/docs/{prematch → feed}/navigation.d.ts +13 -6
- package/dist/docs/{prematch → feed}/sports.d.ts +7 -7
- package/dist/docs/{prematch → feed}/sportsNavigation.d.ts +3 -6
- package/dist/docs/{live → feed}/types.d.ts +1024 -462
- package/dist/docs/index.d.ts +21 -22
- package/dist/global.d.ts +16 -10
- package/dist/index.d.ts +9 -13
- package/dist/index.js +3817 -3199
- package/dist/utils/cashback/createCashbackTransaction.d.ts +0 -0
- package/dist/utils/cashback/getCashbackBalance.d.ts +0 -0
- package/dist/utils/createBet.d.ts +16 -0
- package/dist/utils/createComboBet.d.ts +16 -0
- package/dist/utils/getBet.d.ts +23 -0
- package/dist/utils/{getLiveBetFee.d.ts → getBetFee.d.ts} +2 -2
- package/dist/utils/getBetStatus.d.ts +6 -4
- package/dist/utils/getBetTypedData.d.ts +16 -0
- package/dist/utils/getComboBetTypedData.d.ts +16 -0
- package/dist/utils/getEndpoints.d.ts +4 -4
- package/dist/utils/getFreebets.d.ts +1 -1
- package/dist/utils/getIsPendingResolution.d.ts +7 -0
- package/dist/utils/getMaxBet.d.ts +17 -0
- package/dist/utils/groupConditionsByMarket.d.ts +13 -11
- package/dist/utils/setupContracts.d.ts +11 -24
- package/package.json +4 -4
- package/dist/abis/LiveCore.d.ts +0 -694
- package/dist/abis/ProxyFront.d.ts +0 -137
- package/dist/docs/live/condition.d.ts +0 -26
- package/dist/docs/live/fragments/condition.d.ts +0 -20
- package/dist/docs/prematch/conditions.d.ts +0 -42
- package/dist/utils/calcOdds.d.ts +0 -28
- package/dist/utils/createLiveBet.d.ts +0 -23
- package/dist/utils/deBridge/createDeBridgeBet.d.ts +0 -65
- package/dist/utils/deBridge/getDeBridgeOrder.d.ts +0 -39
- package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +0 -11
- package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +0 -13
- package/dist/utils/getGameStatus.d.ts +0 -16
- package/dist/utils/getLiveBet.d.ts +0 -13
- package/dist/utils/getLiveBetTypedData.d.ts +0 -10
- package/dist/utils/getPrematchBetDataBytes.d.ts +0 -3
- package/dist/utils/groupByConditionId.d.ts +0 -5
- /package/dist/docs/{prematch → bets}/bettors.d.ts +0 -0
- /package/dist/docs/{prematch → bets}/fragments/bettor.d.ts +0 -0
- /package/dist/docs/{prematch → bets}/fragments/mainGameInfo.d.ts +0 -0
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
|
-
export type
|
|
2
|
+
export type ConditionQueryVariables = Types.Exact<{
|
|
3
3
|
id: Types.Scalars['ID']['input'];
|
|
4
4
|
}>;
|
|
5
|
-
export type
|
|
5
|
+
export type ConditionQuery = {
|
|
6
6
|
__typename?: 'Query';
|
|
7
7
|
condition?: {
|
|
8
8
|
__typename?: 'Condition';
|
|
9
9
|
id: string;
|
|
10
10
|
conditionId: string;
|
|
11
|
-
|
|
11
|
+
state: Types.ConditionState;
|
|
12
12
|
title?: string | null;
|
|
13
13
|
isExpressForbidden: boolean;
|
|
14
|
-
|
|
14
|
+
isPrematchEnabled: boolean;
|
|
15
|
+
isLiveEnabled: boolean;
|
|
15
16
|
outcomes: Array<{
|
|
16
17
|
__typename?: 'Outcome';
|
|
17
18
|
title?: string | null;
|
|
18
19
|
outcomeId: string;
|
|
19
20
|
odds: string;
|
|
20
21
|
}>;
|
|
21
|
-
core: {
|
|
22
|
-
__typename?: 'CoreContract';
|
|
23
|
-
address: string;
|
|
24
|
-
liquidityPool: {
|
|
25
|
-
__typename?: 'LiquidityPoolContract';
|
|
26
|
-
address: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
22
|
game: {
|
|
30
23
|
__typename?: 'Game';
|
|
31
24
|
gameId: string;
|
|
@@ -36,4 +29,4 @@ export type PrematchConditionQuery = {
|
|
|
36
29
|
};
|
|
37
30
|
} | null;
|
|
38
31
|
};
|
|
39
|
-
export declare const
|
|
32
|
+
export declare const ConditionDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
|
-
export type
|
|
2
|
+
export type ConditionsQueryVariables = Types.Exact<{
|
|
3
3
|
where: Types.Condition_Filter;
|
|
4
4
|
orderBy?: Types.InputMaybe<Types.Condition_OrderBy>;
|
|
5
5
|
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
6
6
|
}>;
|
|
7
|
-
export type
|
|
7
|
+
export type ConditionsQuery = {
|
|
8
8
|
__typename?: 'Query';
|
|
9
9
|
conditions: Array<{
|
|
10
10
|
__typename?: 'Condition';
|
|
11
11
|
wonOutcomeIds?: Array<string> | null;
|
|
12
12
|
id: string;
|
|
13
13
|
conditionId: string;
|
|
14
|
-
|
|
14
|
+
state: Types.ConditionState;
|
|
15
|
+
title?: string | null;
|
|
16
|
+
isExpressForbidden: boolean;
|
|
17
|
+
isPrematchEnabled: boolean;
|
|
18
|
+
isLiveEnabled: boolean;
|
|
15
19
|
outcomes: Array<{
|
|
16
20
|
__typename?: 'Outcome';
|
|
21
|
+
title?: string | null;
|
|
17
22
|
outcomeId: string;
|
|
23
|
+
odds: string;
|
|
18
24
|
}>;
|
|
19
25
|
game: {
|
|
20
26
|
__typename?: 'Game';
|
|
@@ -26,4 +32,4 @@ export type LiveConditionsQuery = {
|
|
|
26
32
|
};
|
|
27
33
|
}>;
|
|
28
34
|
};
|
|
29
|
-
export declare const
|
|
35
|
+
export declare const ConditionsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
|
-
export type
|
|
2
|
+
export type ConditionsBatchQueryVariables = Types.Exact<{
|
|
3
3
|
conditionFilter?: Types.InputMaybe<Types.Condition_Filter>;
|
|
4
4
|
}>;
|
|
5
|
-
export type
|
|
5
|
+
export type ConditionsBatchQuery = {
|
|
6
6
|
__typename?: 'Query';
|
|
7
7
|
conditions: Array<{
|
|
8
8
|
__typename?: 'Condition';
|
|
9
|
-
|
|
9
|
+
state: Types.ConditionState;
|
|
10
10
|
conditionId: string;
|
|
11
11
|
outcomes: Array<{
|
|
12
12
|
__typename?: 'Outcome';
|
|
@@ -16,4 +16,4 @@ export type PrematchConditionsBatchQuery = {
|
|
|
16
16
|
}>;
|
|
17
17
|
}>;
|
|
18
18
|
};
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const ConditionsBatchDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import * as Types from '../types';
|
|
2
|
-
export type
|
|
2
|
+
export type ConditionFragment = {
|
|
3
3
|
__typename?: 'Condition';
|
|
4
4
|
id: string;
|
|
5
5
|
conditionId: string;
|
|
6
|
-
|
|
6
|
+
state: Types.ConditionState;
|
|
7
7
|
title?: string | null;
|
|
8
8
|
isExpressForbidden: boolean;
|
|
9
|
-
|
|
9
|
+
isPrematchEnabled: boolean;
|
|
10
|
+
isLiveEnabled: boolean;
|
|
10
11
|
outcomes: Array<{
|
|
11
12
|
__typename?: 'Outcome';
|
|
12
13
|
title?: string | null;
|
|
13
14
|
outcomeId: string;
|
|
14
15
|
odds: string;
|
|
15
16
|
}>;
|
|
16
|
-
core: {
|
|
17
|
-
__typename?: 'CoreContract';
|
|
18
|
-
address: string;
|
|
19
|
-
liquidityPool: {
|
|
20
|
-
__typename?: 'LiquidityPoolContract';
|
|
21
|
-
address: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
17
|
game: {
|
|
25
18
|
__typename?: 'Game';
|
|
26
19
|
gameId: string;
|
|
@@ -30,4 +23,4 @@ export type PrematchConditionFragment = {
|
|
|
30
23
|
};
|
|
31
24
|
};
|
|
32
25
|
};
|
|
33
|
-
export declare const
|
|
26
|
+
export declare const ConditionFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Types from '../types';
|
|
2
|
+
export type GameInfoFragment = {
|
|
3
|
+
__typename?: 'Game';
|
|
4
|
+
id: string;
|
|
5
|
+
gameId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
startsAt: string;
|
|
8
|
+
state: Types.GameState;
|
|
9
|
+
sport: {
|
|
10
|
+
__typename?: 'Sport';
|
|
11
|
+
sportId: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
league: {
|
|
16
|
+
__typename?: 'League';
|
|
17
|
+
slug: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
country: {
|
|
21
|
+
__typename?: 'Country';
|
|
22
|
+
slug: string;
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
participants: Array<{
|
|
26
|
+
__typename?: 'Participant';
|
|
27
|
+
image?: string | null;
|
|
28
|
+
name: string;
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
31
|
+
export declare const GameInfoFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
2
|
export type GameQueryVariables = Types.Exact<{
|
|
3
|
-
|
|
3
|
+
id: Types.Scalars['ID']['input'];
|
|
4
4
|
}>;
|
|
5
5
|
export type GameQuery = {
|
|
6
6
|
__typename?: 'Query';
|
|
7
|
-
|
|
7
|
+
game?: {
|
|
8
8
|
__typename?: 'Game';
|
|
9
9
|
id: string;
|
|
10
10
|
gameId: string;
|
|
11
|
-
title
|
|
11
|
+
title: string;
|
|
12
12
|
startsAt: string;
|
|
13
|
-
|
|
13
|
+
state: Types.GameState;
|
|
14
14
|
sport: {
|
|
15
15
|
__typename?: 'Sport';
|
|
16
16
|
sportId: string;
|
|
@@ -21,17 +21,17 @@ export type GameQuery = {
|
|
|
21
21
|
__typename?: 'League';
|
|
22
22
|
slug: string;
|
|
23
23
|
name: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
};
|
|
25
|
+
country: {
|
|
26
|
+
__typename?: 'Country';
|
|
27
|
+
slug: string;
|
|
28
|
+
name: string;
|
|
29
29
|
};
|
|
30
30
|
participants: Array<{
|
|
31
31
|
__typename?: 'Participant';
|
|
32
32
|
image?: string | null;
|
|
33
33
|
name: string;
|
|
34
34
|
}>;
|
|
35
|
-
}
|
|
35
|
+
} | null;
|
|
36
36
|
};
|
|
37
37
|
export declare const GameDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -12,9 +12,9 @@ export type GamesQuery = {
|
|
|
12
12
|
__typename?: 'Game';
|
|
13
13
|
id: string;
|
|
14
14
|
gameId: string;
|
|
15
|
-
title
|
|
15
|
+
title: string;
|
|
16
16
|
startsAt: string;
|
|
17
|
-
|
|
17
|
+
state: Types.GameState;
|
|
18
18
|
sport: {
|
|
19
19
|
__typename?: 'Sport';
|
|
20
20
|
sportId: string;
|
|
@@ -25,11 +25,11 @@ export type GamesQuery = {
|
|
|
25
25
|
__typename?: 'League';
|
|
26
26
|
slug: string;
|
|
27
27
|
name: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
};
|
|
29
|
+
country: {
|
|
30
|
+
__typename?: 'Country';
|
|
31
|
+
slug: string;
|
|
32
|
+
name: string;
|
|
33
33
|
};
|
|
34
34
|
participants: Array<{
|
|
35
35
|
__typename?: 'Participant';
|
|
@@ -2,8 +2,8 @@ import * as Types from './types';
|
|
|
2
2
|
export type NavigationQueryVariables = Types.Exact<{
|
|
3
3
|
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
4
|
sportFilter?: Types.InputMaybe<Types.Sport_Filter>;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
countryFilter?: Types.InputMaybe<Types.Country_Filter>;
|
|
6
|
+
leagueFilter?: Types.InputMaybe<Types.League_Filter>;
|
|
7
7
|
}>;
|
|
8
8
|
export type NavigationQuery = {
|
|
9
9
|
__typename?: 'Query';
|
|
@@ -13,20 +13,27 @@ export type NavigationQuery = {
|
|
|
13
13
|
slug: string;
|
|
14
14
|
name: string;
|
|
15
15
|
sportId: string;
|
|
16
|
+
activeGamesCount: number;
|
|
17
|
+
activeLiveGamesCount: number;
|
|
18
|
+
activePrematchGamesCount: number;
|
|
16
19
|
countries: Array<{
|
|
17
20
|
__typename?: 'Country';
|
|
18
21
|
id: string;
|
|
19
22
|
slug: string;
|
|
20
23
|
name: string;
|
|
24
|
+
turnover: string;
|
|
25
|
+
activeGamesCount: number;
|
|
26
|
+
activeLiveGamesCount: number;
|
|
27
|
+
activePrematchGamesCount: number;
|
|
21
28
|
leagues: Array<{
|
|
22
29
|
__typename?: 'League';
|
|
23
30
|
id: string;
|
|
24
31
|
slug: string;
|
|
25
32
|
name: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
turnover: string;
|
|
34
|
+
activeGamesCount: number;
|
|
35
|
+
activeLiveGamesCount: number;
|
|
36
|
+
activePrematchGamesCount: number;
|
|
30
37
|
}>;
|
|
31
38
|
}>;
|
|
32
39
|
}>;
|
|
@@ -31,9 +31,9 @@ export type SportsQuery = {
|
|
|
31
31
|
turnover: string;
|
|
32
32
|
id: string;
|
|
33
33
|
gameId: string;
|
|
34
|
-
title
|
|
34
|
+
title: string;
|
|
35
35
|
startsAt: string;
|
|
36
|
-
|
|
36
|
+
state: Types.GameState;
|
|
37
37
|
sport: {
|
|
38
38
|
__typename?: 'Sport';
|
|
39
39
|
sportId: string;
|
|
@@ -44,11 +44,11 @@ export type SportsQuery = {
|
|
|
44
44
|
__typename?: 'League';
|
|
45
45
|
slug: string;
|
|
46
46
|
name: string;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
};
|
|
48
|
+
country: {
|
|
49
|
+
__typename?: 'Country';
|
|
50
|
+
slug: string;
|
|
51
|
+
name: string;
|
|
52
52
|
};
|
|
53
53
|
participants: Array<{
|
|
54
54
|
__typename?: 'Participant';
|
|
@@ -2,8 +2,6 @@ import * as Types from './types';
|
|
|
2
2
|
export type SportsNavigationQueryVariables = Types.Exact<{
|
|
3
3
|
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
4
|
sportFilter?: Types.InputMaybe<Types.Sport_Filter>;
|
|
5
|
-
gameFilter?: Types.InputMaybe<Types.Game_Filter>;
|
|
6
|
-
withGameCount: Types.Scalars['Boolean']['input'];
|
|
7
5
|
}>;
|
|
8
6
|
export type SportsNavigationQuery = {
|
|
9
7
|
__typename?: 'Query';
|
|
@@ -13,10 +11,9 @@ export type SportsNavigationQuery = {
|
|
|
13
11
|
slug: string;
|
|
14
12
|
name: string;
|
|
15
13
|
sportId: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}>;
|
|
14
|
+
activeGamesCount: number;
|
|
15
|
+
activeLiveGamesCount: number;
|
|
16
|
+
activePrematchGamesCount: number;
|
|
20
17
|
}>;
|
|
21
18
|
};
|
|
22
19
|
export declare const SportsNavigationDocument: import("graphql/language/ast").DocumentNode;
|