@azuro-org/toolkit 3.0.0 → 4.0.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.
Files changed (66) hide show
  1. package/.eslintrc +166 -0
  2. package/README.md +7 -110
  3. package/codegen.ts +62 -0
  4. package/dist/abis/FreeBet.d.ts +426 -0
  5. package/dist/abis/LP.d.ts +1469 -0
  6. package/dist/abis/LiveCore.d.ts +694 -0
  7. package/dist/abis/PrematchComboCore.d.ts +740 -0
  8. package/dist/abis/PrematchCore.d.ts +819 -0
  9. package/dist/abis/ProxyFront.d.ts +137 -0
  10. package/dist/abis/index.d.ts +6 -0
  11. package/dist/config.d.ts +51 -0
  12. package/dist/docs/index.d.ts +22 -0
  13. package/dist/docs/live/condition.d.ts +28 -0
  14. package/dist/docs/live/conditions.d.ts +29 -0
  15. package/dist/docs/live/fragments/condition.d.ts +20 -0
  16. package/dist/docs/live/types.d.ts +1902 -0
  17. package/dist/docs/prematch/bettors.d.ts +21 -0
  18. package/dist/docs/prematch/condition.d.ts +38 -0
  19. package/dist/docs/prematch/conditions.d.ts +39 -0
  20. package/dist/docs/prematch/conditionsBatch.d.ts +22 -0
  21. package/dist/docs/prematch/fragments/bettor.d.ts +12 -0
  22. package/dist/docs/prematch/fragments/condition.d.ts +30 -0
  23. package/dist/docs/prematch/fragments/liveBet.d.ts +42 -0
  24. package/dist/docs/prematch/fragments/mainGameInfo.d.ts +31 -0
  25. package/dist/docs/prematch/fragments/prematchBet.d.ts +75 -0
  26. package/dist/docs/prematch/game.d.ts +39 -0
  27. package/dist/docs/prematch/gameBets.d.ts +54 -0
  28. package/dist/docs/prematch/games.d.ts +43 -0
  29. package/dist/docs/prematch/liveBets.d.ts +54 -0
  30. package/dist/docs/prematch/navigation.d.ts +34 -0
  31. package/dist/docs/prematch/prematchBets.d.ts +87 -0
  32. package/dist/docs/prematch/sports.d.ts +63 -0
  33. package/dist/docs/prematch/sportsNavigation.d.ts +22 -0
  34. package/dist/docs/prematch/types.d.ts +6307 -0
  35. package/dist/global.d.ts +6 -0
  36. package/dist/helpers/formatToFixed.d.ts +1 -0
  37. package/dist/index.d.ts +24 -1
  38. package/dist/index.js +5705 -0
  39. package/dist/utils/calcMindOdds.d.ts +6 -0
  40. package/dist/utils/calcOdds.d.ts +28 -0
  41. package/dist/utils/deBridge/createDeBridgeBet.d.ts +65 -0
  42. package/dist/utils/deBridge/getDeBridgeOrder.d.ts +39 -0
  43. package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +4 -0
  44. package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +8 -0
  45. package/dist/utils/getBetStatus.d.ts +17 -0
  46. package/dist/utils/getEndpoints.d.ts +5 -0
  47. package/dist/utils/getFreebets.d.ts +35 -0
  48. package/dist/utils/getGameStatus.d.ts +16 -0
  49. package/dist/utils/getLiveBetFee.d.ts +14 -0
  50. package/dist/utils/getPrematchBetDataBytes.d.ts +3 -0
  51. package/dist/utils/groupByConditionId.d.ts +5 -0
  52. package/dist/utils/groupConditionsByMarket.d.ts +23 -0
  53. package/dist/utils/setupContracts.d.ts +37 -0
  54. package/dist/utils/wave/activateWave.d.ts +10 -0
  55. package/dist/utils/wave/getWaveLeaderBoard.d.ts +22 -0
  56. package/dist/utils/wave/getWaveLevels.d.ts +26 -0
  57. package/dist/utils/wave/getWavePeriods.d.ts +18 -0
  58. package/dist/utils/wave/getWaveStats.d.ts +30 -0
  59. package/graphql.config.yml +21 -0
  60. package/package.json +24 -8
  61. package/tsconfig.json +25 -10
  62. package/dist/aggregateOutcomesByMarkets.d.ts +0 -25
  63. package/dist/index.es.js +0 -109
  64. package/lib/aggregateOutcomesByMarkets.d.ts +0 -25
  65. package/lib/index.d.ts +0 -1
  66. package/lib/index.js +0 -109
@@ -0,0 +1,21 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type BettorsQueryVariables = Types.Exact<{
4
+ where: Types.Bettor_Filter;
5
+ }>;
6
+ export type BettorsQuery = {
7
+ __typename?: 'Query';
8
+ bettors: Array<{
9
+ __typename?: 'Bettor';
10
+ id: string;
11
+ rawToPayout: string;
12
+ rawInBets: string;
13
+ rawTotalPayout: string;
14
+ rawTotalProfit: string;
15
+ betsCount: number;
16
+ wonBetsCount: number;
17
+ lostBetsCount: number;
18
+ }>;
19
+ };
20
+ export declare const BettorsDocument: Apollo.DocumentNode;
21
+ export type BettorsQueryResult = Apollo.QueryResult<BettorsQuery, BettorsQueryVariables>;
@@ -0,0 +1,38 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type PrematchConditionQueryVariables = Types.Exact<{
4
+ id: Types.Scalars['String']['input'];
5
+ }>;
6
+ export type PrematchConditionQuery = {
7
+ __typename?: 'Query';
8
+ condition?: {
9
+ __typename?: 'Condition';
10
+ id: string;
11
+ conditionId: string;
12
+ status: Types.ConditionStatus;
13
+ isExpressForbidden: boolean;
14
+ outcomes: Array<{
15
+ __typename?: 'Outcome';
16
+ outcomeId: string;
17
+ odds: string;
18
+ }>;
19
+ core: {
20
+ __typename?: 'CoreContract';
21
+ address: string;
22
+ liquidityPool: {
23
+ __typename?: 'LiquidityPoolContract';
24
+ address: string;
25
+ };
26
+ };
27
+ game: {
28
+ __typename?: 'Game';
29
+ gameId: string;
30
+ sport: {
31
+ __typename?: 'Sport';
32
+ sportId: string;
33
+ };
34
+ };
35
+ } | null;
36
+ };
37
+ export declare const PrematchConditionDocument: Apollo.DocumentNode;
38
+ export type PrematchConditionQueryResult = Apollo.QueryResult<PrematchConditionQuery, PrematchConditionQueryVariables>;
@@ -0,0 +1,39 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type PrematchConditionsQueryVariables = Types.Exact<{
4
+ where: Types.Condition_Filter;
5
+ }>;
6
+ export type PrematchConditionsQuery = {
7
+ __typename?: 'Query';
8
+ conditions: Array<{
9
+ __typename?: 'Condition';
10
+ wonOutcomeIds?: Array<string> | null;
11
+ id: string;
12
+ conditionId: string;
13
+ status: Types.ConditionStatus;
14
+ isExpressForbidden: boolean;
15
+ outcomes: Array<{
16
+ __typename?: 'Outcome';
17
+ outcomeId: string;
18
+ odds: string;
19
+ }>;
20
+ core: {
21
+ __typename?: 'CoreContract';
22
+ address: string;
23
+ liquidityPool: {
24
+ __typename?: 'LiquidityPoolContract';
25
+ address: string;
26
+ };
27
+ };
28
+ game: {
29
+ __typename?: 'Game';
30
+ gameId: string;
31
+ sport: {
32
+ __typename?: 'Sport';
33
+ sportId: string;
34
+ };
35
+ };
36
+ }>;
37
+ };
38
+ export declare const PrematchConditionsDocument: Apollo.DocumentNode;
39
+ export type PrematchConditionsQueryResult = Apollo.QueryResult<PrematchConditionsQuery, PrematchConditionsQueryVariables>;
@@ -0,0 +1,22 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type PrematchConditionsBatchQueryVariables = Types.Exact<{
4
+ conditionFilter?: Types.InputMaybe<Types.Condition_Filter>;
5
+ }>;
6
+ export type PrematchConditionsBatchQuery = {
7
+ __typename?: 'Query';
8
+ conditions: Array<{
9
+ __typename?: 'Condition';
10
+ id: string;
11
+ status: Types.ConditionStatus;
12
+ conditionId: string;
13
+ outcomes: Array<{
14
+ __typename?: 'Outcome';
15
+ id: string;
16
+ outcomeId: string;
17
+ odds: string;
18
+ }>;
19
+ }>;
20
+ };
21
+ export declare const PrematchConditionsBatchDocument: Apollo.DocumentNode;
22
+ export type PrematchConditionsBatchQueryResult = Apollo.QueryResult<PrematchConditionsBatchQuery, PrematchConditionsBatchQueryVariables>;
@@ -0,0 +1,12 @@
1
+ export type BettorFragment = {
2
+ __typename?: 'Bettor';
3
+ id: string;
4
+ rawToPayout: string;
5
+ rawInBets: string;
6
+ rawTotalPayout: string;
7
+ rawTotalProfit: string;
8
+ betsCount: number;
9
+ wonBetsCount: number;
10
+ lostBetsCount: number;
11
+ };
12
+ export declare const BettorFragmentDoc: import("@apollo/client").DocumentNode;
@@ -0,0 +1,30 @@
1
+ import * as Types from '../types';
2
+ export type PrematchConditionFragment = {
3
+ __typename?: 'Condition';
4
+ id: string;
5
+ conditionId: string;
6
+ status: Types.ConditionStatus;
7
+ isExpressForbidden: boolean;
8
+ outcomes: Array<{
9
+ __typename?: 'Outcome';
10
+ outcomeId: string;
11
+ odds: string;
12
+ }>;
13
+ core: {
14
+ __typename?: 'CoreContract';
15
+ address: string;
16
+ liquidityPool: {
17
+ __typename?: 'LiquidityPoolContract';
18
+ address: string;
19
+ };
20
+ };
21
+ game: {
22
+ __typename?: 'Game';
23
+ gameId: string;
24
+ sport: {
25
+ __typename?: 'Sport';
26
+ sportId: string;
27
+ };
28
+ };
29
+ };
30
+ export declare const PrematchConditionFragmentDoc: import("@apollo/client").DocumentNode;
@@ -0,0 +1,42 @@
1
+ import * as Types from '../types';
2
+ export type LiveBetFragment = {
3
+ __typename?: 'LiveBet';
4
+ id: string;
5
+ amount: string;
6
+ status: Types.BetStatus;
7
+ potentialPayout: string;
8
+ payout?: string | null;
9
+ result?: Types.BetResult | null;
10
+ isRedeemed: boolean;
11
+ isRedeemable: boolean;
12
+ odds: string;
13
+ settledOdds?: string | null;
14
+ affiliate?: string | null;
15
+ tokenId: string;
16
+ createdAt: string;
17
+ txHash: string;
18
+ core: {
19
+ __typename?: 'CoreContract';
20
+ address: string;
21
+ liquidityPool: {
22
+ __typename?: 'LiquidityPoolContract';
23
+ address: string;
24
+ };
25
+ };
26
+ selections: Array<{
27
+ __typename?: 'LiveSelection';
28
+ odds: string;
29
+ result?: Types.SelectionResult | null;
30
+ outcome: {
31
+ __typename?: 'LiveOutcome';
32
+ outcomeId: string;
33
+ condition: {
34
+ __typename?: 'LiveCondition';
35
+ conditionId: string;
36
+ status: Types.ConditionStatus;
37
+ gameId: string;
38
+ };
39
+ };
40
+ }>;
41
+ };
42
+ export declare const LiveBetFragmentDoc: import("@apollo/client").DocumentNode;
@@ -0,0 +1,31 @@
1
+ import * as Types from '../types';
2
+ export type MainGameInfoFragment = {
3
+ __typename?: 'Game';
4
+ id: string;
5
+ gameId: string;
6
+ title?: string | null;
7
+ startsAt: string;
8
+ status: Types.GameStatus;
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
+ country: {
20
+ __typename?: 'Country';
21
+ slug: string;
22
+ name: string;
23
+ };
24
+ };
25
+ participants: Array<{
26
+ __typename?: 'Participant';
27
+ image?: string | null;
28
+ name: string;
29
+ }>;
30
+ };
31
+ export declare const MainGameInfoFragmentDoc: import("@apollo/client").DocumentNode;
@@ -0,0 +1,75 @@
1
+ import * as Types from '../types';
2
+ export type PrematchBetFragment = {
3
+ __typename?: 'Bet';
4
+ id: string;
5
+ amount: string;
6
+ status: Types.BetStatus;
7
+ potentialPayout: string;
8
+ payout?: string | null;
9
+ result?: Types.BetResult | null;
10
+ isRedeemed: boolean;
11
+ isRedeemable: boolean;
12
+ odds: string;
13
+ settledOdds?: string | null;
14
+ affiliate?: string | null;
15
+ tokenId: string;
16
+ createdAt: string;
17
+ txHash: string;
18
+ core: {
19
+ __typename?: 'CoreContract';
20
+ address: string;
21
+ liquidityPool: {
22
+ __typename?: 'LiquidityPoolContract';
23
+ address: string;
24
+ };
25
+ };
26
+ selections: Array<{
27
+ __typename?: 'Selection';
28
+ odds: string;
29
+ result?: Types.SelectionResult | null;
30
+ outcome: {
31
+ __typename?: 'Outcome';
32
+ outcomeId: string;
33
+ condition: {
34
+ __typename?: 'Condition';
35
+ conditionId: string;
36
+ status: Types.ConditionStatus;
37
+ game: {
38
+ __typename?: 'Game';
39
+ id: string;
40
+ gameId: string;
41
+ title?: string | null;
42
+ startsAt: string;
43
+ status: Types.GameStatus;
44
+ sport: {
45
+ __typename?: 'Sport';
46
+ sportId: string;
47
+ slug: string;
48
+ name: string;
49
+ };
50
+ league: {
51
+ __typename?: 'League';
52
+ slug: string;
53
+ name: string;
54
+ country: {
55
+ __typename?: 'Country';
56
+ slug: string;
57
+ name: string;
58
+ };
59
+ };
60
+ participants: Array<{
61
+ __typename?: 'Participant';
62
+ image?: string | null;
63
+ name: string;
64
+ }>;
65
+ };
66
+ };
67
+ };
68
+ }>;
69
+ freebet?: {
70
+ __typename?: 'Freebet';
71
+ freebetId: string;
72
+ contractAddress: string;
73
+ } | null;
74
+ };
75
+ export declare const PrematchBetFragmentDoc: import("@apollo/client").DocumentNode;
@@ -0,0 +1,39 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type GameQueryVariables = Types.Exact<{
4
+ gameId: Types.Scalars['BigInt']['input'];
5
+ }>;
6
+ export type GameQuery = {
7
+ __typename?: 'Query';
8
+ games: Array<{
9
+ __typename?: 'Game';
10
+ id: string;
11
+ gameId: string;
12
+ title?: string | null;
13
+ startsAt: string;
14
+ status: Types.GameStatus;
15
+ sport: {
16
+ __typename?: 'Sport';
17
+ sportId: string;
18
+ slug: string;
19
+ name: string;
20
+ };
21
+ league: {
22
+ __typename?: 'League';
23
+ slug: string;
24
+ name: string;
25
+ country: {
26
+ __typename?: 'Country';
27
+ slug: string;
28
+ name: string;
29
+ };
30
+ };
31
+ participants: Array<{
32
+ __typename?: 'Participant';
33
+ image?: string | null;
34
+ name: string;
35
+ }>;
36
+ }>;
37
+ };
38
+ export declare const GameDocument: Apollo.DocumentNode;
39
+ export type GameQueryResult = Apollo.QueryResult<GameQuery, GameQueryVariables>;
@@ -0,0 +1,54 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type GameBetsQueryVariables = Types.Exact<{
4
+ gameId: Types.Scalars['String']['input'];
5
+ actor?: Types.InputMaybe<Types.Scalars['String']['input']>;
6
+ }>;
7
+ export type GameBetsQuery = {
8
+ __typename?: 'Query';
9
+ bets: Array<{
10
+ __typename?: 'Bet';
11
+ rawAmount: string;
12
+ rawPotentialPayout: string;
13
+ result?: Types.BetResult | null;
14
+ selections: Array<{
15
+ __typename?: 'Selection';
16
+ rawOdds: string;
17
+ outcome: {
18
+ __typename?: 'Outcome';
19
+ outcomeId: string;
20
+ condition: {
21
+ __typename?: 'Condition';
22
+ conditionId: string;
23
+ game: {
24
+ __typename?: 'Game';
25
+ gameId: string;
26
+ };
27
+ };
28
+ };
29
+ }>;
30
+ freebet?: {
31
+ __typename?: 'Freebet';
32
+ id: string;
33
+ } | null;
34
+ }>;
35
+ liveBets: Array<{
36
+ __typename?: 'LiveBet';
37
+ rawAmount: string;
38
+ rawPotentialPayout: string;
39
+ result?: Types.BetResult | null;
40
+ selections: Array<{
41
+ __typename?: 'LiveSelection';
42
+ outcome: {
43
+ __typename?: 'LiveOutcome';
44
+ outcomeId: string;
45
+ condition: {
46
+ __typename?: 'LiveCondition';
47
+ conditionId: string;
48
+ };
49
+ };
50
+ }>;
51
+ }>;
52
+ };
53
+ export declare const GameBetsDocument: Apollo.DocumentNode;
54
+ export type GameBetsQueryResult = Apollo.QueryResult<GameBetsQuery, GameBetsQueryVariables>;
@@ -0,0 +1,43 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type GamesQueryVariables = Types.Exact<{
4
+ first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
+ skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
6
+ where: Types.Game_Filter;
7
+ orderBy?: Types.InputMaybe<Types.Game_OrderBy>;
8
+ orderDirection?: Types.InputMaybe<Types.OrderDirection>;
9
+ }>;
10
+ export type GamesQuery = {
11
+ __typename?: 'Query';
12
+ games: Array<{
13
+ __typename?: 'Game';
14
+ id: string;
15
+ gameId: string;
16
+ title?: string | null;
17
+ startsAt: string;
18
+ status: Types.GameStatus;
19
+ sport: {
20
+ __typename?: 'Sport';
21
+ sportId: string;
22
+ slug: string;
23
+ name: string;
24
+ };
25
+ league: {
26
+ __typename?: 'League';
27
+ slug: string;
28
+ name: string;
29
+ country: {
30
+ __typename?: 'Country';
31
+ slug: string;
32
+ name: string;
33
+ };
34
+ };
35
+ participants: Array<{
36
+ __typename?: 'Participant';
37
+ image?: string | null;
38
+ name: string;
39
+ }>;
40
+ }>;
41
+ };
42
+ export declare const GamesDocument: Apollo.DocumentNode;
43
+ export type GamesQueryResult = Apollo.QueryResult<GamesQuery, GamesQueryVariables>;
@@ -0,0 +1,54 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type LiveBetsQueryVariables = Types.Exact<{
4
+ first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
+ skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
6
+ where: Types.Bet_Filter;
7
+ orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
8
+ orderDirection?: Types.InputMaybe<Types.OrderDirection>;
9
+ }>;
10
+ export type LiveBetsQuery = {
11
+ __typename?: 'Query';
12
+ liveBets: Array<{
13
+ __typename?: 'LiveBet';
14
+ id: string;
15
+ amount: string;
16
+ status: Types.BetStatus;
17
+ potentialPayout: string;
18
+ payout?: string | null;
19
+ result?: Types.BetResult | null;
20
+ isRedeemed: boolean;
21
+ isRedeemable: boolean;
22
+ odds: string;
23
+ settledOdds?: string | null;
24
+ affiliate?: string | null;
25
+ tokenId: string;
26
+ createdAt: string;
27
+ txHash: string;
28
+ core: {
29
+ __typename?: 'CoreContract';
30
+ address: string;
31
+ liquidityPool: {
32
+ __typename?: 'LiquidityPoolContract';
33
+ address: string;
34
+ };
35
+ };
36
+ selections: Array<{
37
+ __typename?: 'LiveSelection';
38
+ odds: string;
39
+ result?: Types.SelectionResult | null;
40
+ outcome: {
41
+ __typename?: 'LiveOutcome';
42
+ outcomeId: string;
43
+ condition: {
44
+ __typename?: 'LiveCondition';
45
+ conditionId: string;
46
+ status: Types.ConditionStatus;
47
+ gameId: string;
48
+ };
49
+ };
50
+ }>;
51
+ }>;
52
+ };
53
+ export declare const LiveBetsDocument: Apollo.DocumentNode;
54
+ export type LiveBetsQueryResult = Apollo.QueryResult<LiveBetsQuery, LiveBetsQueryVariables>;
@@ -0,0 +1,34 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type NavigationQueryVariables = Types.Exact<{
4
+ first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
+ where?: Types.InputMaybe<Types.Game_Filter>;
6
+ withGameCount: Types.Scalars['Boolean']['input'];
7
+ }>;
8
+ export type NavigationQuery = {
9
+ __typename?: 'Query';
10
+ sports: Array<{
11
+ __typename?: 'Sport';
12
+ id: string;
13
+ slug: string;
14
+ name: string;
15
+ countries: Array<{
16
+ __typename?: 'Country';
17
+ id: string;
18
+ slug: string;
19
+ name: string;
20
+ leagues: Array<{
21
+ __typename?: 'League';
22
+ id: string;
23
+ slug: string;
24
+ name: string;
25
+ games?: Array<{
26
+ __typename?: 'Game';
27
+ id: string;
28
+ }>;
29
+ }>;
30
+ }>;
31
+ }>;
32
+ };
33
+ export declare const NavigationDocument: Apollo.DocumentNode;
34
+ export type NavigationQueryResult = Apollo.QueryResult<NavigationQuery, NavigationQueryVariables>;
@@ -0,0 +1,87 @@
1
+ import * as Types from './types';
2
+ import * as Apollo from '@apollo/client';
3
+ export type PrematchBetsQueryVariables = Types.Exact<{
4
+ first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
+ skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
6
+ where: Types.Bet_Filter;
7
+ orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
8
+ orderDirection?: Types.InputMaybe<Types.OrderDirection>;
9
+ }>;
10
+ export type PrematchBetsQuery = {
11
+ __typename?: 'Query';
12
+ bets: Array<{
13
+ __typename?: 'Bet';
14
+ id: string;
15
+ amount: string;
16
+ status: Types.BetStatus;
17
+ potentialPayout: string;
18
+ payout?: string | null;
19
+ result?: Types.BetResult | null;
20
+ isRedeemed: boolean;
21
+ isRedeemable: boolean;
22
+ odds: string;
23
+ settledOdds?: string | null;
24
+ affiliate?: string | null;
25
+ tokenId: string;
26
+ createdAt: string;
27
+ txHash: string;
28
+ core: {
29
+ __typename?: 'CoreContract';
30
+ address: string;
31
+ liquidityPool: {
32
+ __typename?: 'LiquidityPoolContract';
33
+ address: string;
34
+ };
35
+ };
36
+ selections: Array<{
37
+ __typename?: 'Selection';
38
+ odds: string;
39
+ result?: Types.SelectionResult | null;
40
+ outcome: {
41
+ __typename?: 'Outcome';
42
+ outcomeId: string;
43
+ condition: {
44
+ __typename?: 'Condition';
45
+ conditionId: string;
46
+ status: Types.ConditionStatus;
47
+ game: {
48
+ __typename?: 'Game';
49
+ id: string;
50
+ gameId: string;
51
+ title?: string | null;
52
+ startsAt: string;
53
+ status: Types.GameStatus;
54
+ sport: {
55
+ __typename?: 'Sport';
56
+ sportId: string;
57
+ slug: string;
58
+ name: string;
59
+ };
60
+ league: {
61
+ __typename?: 'League';
62
+ slug: string;
63
+ name: string;
64
+ country: {
65
+ __typename?: 'Country';
66
+ slug: string;
67
+ name: string;
68
+ };
69
+ };
70
+ participants: Array<{
71
+ __typename?: 'Participant';
72
+ image?: string | null;
73
+ name: string;
74
+ }>;
75
+ };
76
+ };
77
+ };
78
+ }>;
79
+ freebet?: {
80
+ __typename?: 'Freebet';
81
+ freebetId: string;
82
+ contractAddress: string;
83
+ } | null;
84
+ }>;
85
+ };
86
+ export declare const PrematchBetsDocument: Apollo.DocumentNode;
87
+ export type PrematchBetsQueryResult = Apollo.QueryResult<PrematchBetsQuery, PrematchBetsQueryVariables>;