@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.
Files changed (67) hide show
  1. package/README.md +3 -3
  2. package/dist/abis/{PrematchComboCore.d.ts → AzuroBet.d.ts} +158 -319
  3. package/dist/abis/Cashback.d.ts +302 -0
  4. package/dist/abis/Cashout.d.ts +424 -0
  5. package/dist/abis/{PrematchCore.d.ts → Core.d.ts} +548 -340
  6. package/dist/abis/LP.d.ts +218 -650
  7. package/dist/abis/Relayer.d.ts +393 -0
  8. package/dist/abis/index.d.ts +4 -4
  9. package/dist/config.d.ts +78 -15
  10. package/dist/docs/bets/bets.d.ts +64 -0
  11. package/dist/docs/bets/fragments/bet.d.ts +54 -0
  12. package/dist/docs/{prematch/fragments/liveBet.d.ts → bets/fragments/legacyLiveBet.d.ts} +2 -2
  13. package/dist/docs/{prematch/fragments/prematchBet.d.ts → bets/fragments/legacyPrematchBet.d.ts} +2 -2
  14. package/dist/docs/{prematch → bets}/gameBets.d.ts +2 -0
  15. package/dist/docs/{prematch/liveBets.d.ts → bets/legacyLiveBets.d.ts} +3 -3
  16. package/dist/docs/{prematch/prematchBets.d.ts → bets/legacyPrematchBets.d.ts} +3 -3
  17. package/dist/docs/{prematch → bets}/types.d.ts +1719 -15
  18. package/dist/docs/{prematch → feed}/condition.d.ts +6 -13
  19. package/dist/docs/{live → feed}/conditions.d.ts +10 -4
  20. package/dist/docs/{prematch → feed}/conditionsBatch.d.ts +4 -4
  21. package/dist/docs/{prematch → feed}/fragments/condition.d.ts +5 -12
  22. package/dist/docs/feed/fragments/gameInfo.d.ts +31 -0
  23. package/dist/docs/{prematch → feed}/game.d.ts +10 -10
  24. package/dist/docs/{prematch → feed}/games.d.ts +7 -7
  25. package/dist/docs/{prematch → feed}/navigation.d.ts +13 -6
  26. package/dist/docs/{prematch → feed}/sports.d.ts +7 -7
  27. package/dist/docs/{prematch → feed}/sportsNavigation.d.ts +3 -6
  28. package/dist/docs/{live → feed}/types.d.ts +1024 -462
  29. package/dist/docs/index.d.ts +21 -22
  30. package/dist/global.d.ts +16 -10
  31. package/dist/index.d.ts +9 -13
  32. package/dist/index.js +3817 -3199
  33. package/dist/utils/cashback/createCashbackTransaction.d.ts +0 -0
  34. package/dist/utils/cashback/getCashbackBalance.d.ts +0 -0
  35. package/dist/utils/createBet.d.ts +16 -0
  36. package/dist/utils/createComboBet.d.ts +16 -0
  37. package/dist/utils/getBet.d.ts +23 -0
  38. package/dist/utils/{getLiveBetFee.d.ts → getBetFee.d.ts} +2 -2
  39. package/dist/utils/getBetStatus.d.ts +6 -4
  40. package/dist/utils/getBetTypedData.d.ts +16 -0
  41. package/dist/utils/getComboBetTypedData.d.ts +16 -0
  42. package/dist/utils/getEndpoints.d.ts +4 -4
  43. package/dist/utils/getFreebets.d.ts +1 -1
  44. package/dist/utils/getIsPendingResolution.d.ts +7 -0
  45. package/dist/utils/getMaxBet.d.ts +17 -0
  46. package/dist/utils/groupConditionsByMarket.d.ts +13 -11
  47. package/dist/utils/setupContracts.d.ts +11 -24
  48. package/package.json +4 -4
  49. package/dist/abis/LiveCore.d.ts +0 -694
  50. package/dist/abis/ProxyFront.d.ts +0 -137
  51. package/dist/docs/live/condition.d.ts +0 -26
  52. package/dist/docs/live/fragments/condition.d.ts +0 -20
  53. package/dist/docs/prematch/conditions.d.ts +0 -42
  54. package/dist/utils/calcOdds.d.ts +0 -28
  55. package/dist/utils/createLiveBet.d.ts +0 -23
  56. package/dist/utils/deBridge/createDeBridgeBet.d.ts +0 -65
  57. package/dist/utils/deBridge/getDeBridgeOrder.d.ts +0 -39
  58. package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +0 -11
  59. package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +0 -13
  60. package/dist/utils/getGameStatus.d.ts +0 -16
  61. package/dist/utils/getLiveBet.d.ts +0 -13
  62. package/dist/utils/getLiveBetTypedData.d.ts +0 -10
  63. package/dist/utils/getPrematchBetDataBytes.d.ts +0 -3
  64. package/dist/utils/groupByConditionId.d.ts +0 -5
  65. /package/dist/docs/{prematch → bets}/bettors.d.ts +0 -0
  66. /package/dist/docs/{prematch → bets}/fragments/bettor.d.ts +0 -0
  67. /package/dist/docs/{prematch → bets}/fragments/mainGameInfo.d.ts +0 -0
@@ -10,6 +10,7 @@ export type GameBetsQuery = {
10
10
  rawAmount: string;
11
11
  rawPotentialPayout: string;
12
12
  result?: Types.BetResult | null;
13
+ isCashedOut: boolean;
13
14
  selections: Array<{
14
15
  __typename?: 'Selection';
15
16
  rawOdds: string;
@@ -36,6 +37,7 @@ export type GameBetsQuery = {
36
37
  rawAmount: string;
37
38
  rawPotentialPayout: string;
38
39
  result?: Types.BetResult | null;
40
+ isCashedOut: boolean;
39
41
  selections: Array<{
40
42
  __typename?: 'LiveSelection';
41
43
  outcome: {
@@ -1,12 +1,12 @@
1
1
  import * as Types from './types';
2
- export type LiveBetsQueryVariables = Types.Exact<{
2
+ export type LegacyLiveBetsQueryVariables = Types.Exact<{
3
3
  first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
4
4
  skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
5
  where: Types.Bet_Filter;
6
6
  orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
7
7
  orderDirection?: Types.InputMaybe<Types.OrderDirection>;
8
8
  }>;
9
- export type LiveBetsQuery = {
9
+ export type LegacyLiveBetsQuery = {
10
10
  __typename?: 'Query';
11
11
  liveBets: Array<{
12
12
  __typename?: 'LiveBet';
@@ -54,4 +54,4 @@ export type LiveBetsQuery = {
54
54
  } | null;
55
55
  }>;
56
56
  };
57
- export declare const LiveBetsDocument: import("graphql/language/ast").DocumentNode;
57
+ export declare const LegacyLiveBetsDocument: import("graphql/language/ast").DocumentNode;
@@ -1,12 +1,12 @@
1
1
  import * as Types from './types';
2
- export type PrematchBetsQueryVariables = Types.Exact<{
2
+ export type LegacyPrematchBetsQueryVariables = Types.Exact<{
3
3
  first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
4
4
  skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
5
5
  where: Types.Bet_Filter;
6
6
  orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
7
7
  orderDirection?: Types.InputMaybe<Types.OrderDirection>;
8
8
  }>;
9
- export type PrematchBetsQuery = {
9
+ export type LegacyPrematchBetsQuery = {
10
10
  __typename?: 'Query';
11
11
  bets: Array<{
12
12
  __typename?: 'Bet';
@@ -89,4 +89,4 @@ export type PrematchBetsQuery = {
89
89
  } | null;
90
90
  }>;
91
91
  };
92
- export declare const PrematchBetsDocument: import("graphql/language/ast").DocumentNode;
92
+ export declare const LegacyPrematchBetsDocument: import("graphql/language/ast").DocumentNode;