@azuro-org/toolkit 4.6.0-beta.1 → 5.0.0-beta.10
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/Cashout.d.ts +424 -0
- package/dist/abis/{PrematchCore.d.ts → Core.d.ts} +569 -349
- package/dist/abis/LP.d.ts +226 -646
- package/dist/abis/Relayer.d.ts +606 -0
- package/dist/abis/index.d.ts +4 -5
- package/dist/config.d.ts +113 -15
- package/dist/docs/{prematch/liveBets.d.ts → bets/bets.d.ts} +23 -11
- package/dist/docs/bets/fragments/bet.d.ts +59 -0
- package/dist/docs/{prematch/fragments/liveBet.d.ts → bets/fragments/legacyLiveBet.d.ts} +6 -2
- package/dist/docs/{prematch/fragments/prematchBet.d.ts → bets/fragments/legacyPrematchBet.d.ts} +12 -2
- package/dist/docs/{prematch → bets}/gameBets.d.ts +24 -0
- package/dist/docs/{prematch/prematchBets.d.ts → bets/legacyBets.d.ts} +62 -3
- package/dist/docs/{prematch → bets}/types.d.ts +1719 -15
- package/dist/docs/{prematch → feed}/condition.d.ts +6 -12
- package/dist/docs/{prematch → feed}/conditions.d.ts +6 -12
- package/dist/docs/{prematch → feed}/conditionsBatch.d.ts +4 -4
- package/dist/docs/{prematch → feed}/fragments/condition.d.ts +5 -11
- package/dist/docs/{prematch/fragments/mainGameInfo.d.ts → feed/fragments/gameInfo.d.ts} +16 -9
- package/dist/docs/{prematch → feed}/game.d.ts +17 -10
- package/dist/docs/{prematch → feed}/games.d.ts +14 -7
- package/dist/docs/{prematch → feed}/navigation.d.ts +18 -6
- package/dist/docs/{prematch → feed}/sports.d.ts +15 -8
- package/dist/docs/{prematch → feed}/sportsNavigation.d.ts +7 -5
- package/dist/docs/feed/types.d.ts +2409 -0
- package/dist/docs/index.d.ts +21 -22
- package/dist/docs/legacy-live-feed/games.d.ts +47 -0
- package/dist/envs.d.ts +0 -2
- package/dist/global.d.ts +23 -10
- package/dist/index.d.ts +9 -15
- package/dist/index.js +3802 -2827
- package/dist/utils/cashback/createCashbackTransaction.d.ts +0 -14
- package/dist/utils/cashback/getCashbackBalance.d.ts +0 -18
- 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 +8 -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 +14 -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/conditions.d.ts +0 -29
- package/dist/docs/live/fragments/condition.d.ts +0 -20
- 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/{live → legacy-live-feed}/types.d.ts +0 -0
package/dist/docs/index.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export { GameStatus as LiveGraphGameStatus, Condition_OrderBy as LiveConditionOrderBy } from './live/types';
|
|
1
|
+
export * from './bets/fragments/bettor';
|
|
2
|
+
export * from './bets/fragments/legacyLiveBet';
|
|
3
|
+
export * from './bets/fragments/legacyPrematchBet';
|
|
4
|
+
export * from './bets/fragments/bet';
|
|
5
|
+
export * from './bets/bettors';
|
|
6
|
+
export * from './bets/legacyBets';
|
|
7
|
+
export * from './bets/gameBets';
|
|
8
|
+
export * from './bets/bets';
|
|
9
|
+
export * from './feed/fragments/condition';
|
|
10
|
+
export * from './feed/fragments/gameInfo';
|
|
11
|
+
export * from './feed/condition';
|
|
12
|
+
export * from './feed/conditions';
|
|
13
|
+
export * from './feed/conditionsBatch';
|
|
14
|
+
export * from './feed/game';
|
|
15
|
+
export * from './feed/games';
|
|
16
|
+
export * from './feed/navigation';
|
|
17
|
+
export * from './feed/sports';
|
|
18
|
+
export * from './feed/sportsNavigation';
|
|
19
|
+
export * from './legacy-live-feed/games';
|
|
20
|
+
export { BetResult, Bet_OrderBy as Legacy_Bet_OrderBy, GameStatus as LegacyGameStatus, SelectionResult, BetStatus as GraphBetStatus, V3_Bet_OrderBy as Bet_OrderBy, ConditionStatus as BetConditionStatus, V3_SelectionConditionKind as SelectionKind, } from './bets/types';
|
|
21
|
+
export * from './feed/types';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
export type LegacyLiveGamesQueryVariables = Types.Exact<{
|
|
3
|
+
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
|
+
skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
|
+
where: Types.Game_Filter;
|
|
6
|
+
orderBy?: Types.InputMaybe<Types.Game_OrderBy>;
|
|
7
|
+
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
8
|
+
}>;
|
|
9
|
+
export type LegacyLiveGamesQuery = {
|
|
10
|
+
__typename?: 'Query';
|
|
11
|
+
games: Array<{
|
|
12
|
+
__typename?: 'Game';
|
|
13
|
+
id: string;
|
|
14
|
+
gameId: string;
|
|
15
|
+
slug?: string | null;
|
|
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
|
+
sporthub: {
|
|
25
|
+
__typename?: 'SportHub';
|
|
26
|
+
id: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
league: {
|
|
31
|
+
__typename?: 'League';
|
|
32
|
+
slug: string;
|
|
33
|
+
name: string;
|
|
34
|
+
country: {
|
|
35
|
+
__typename?: 'Country';
|
|
36
|
+
slug: string;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
participants: Array<{
|
|
41
|
+
__typename?: 'Participant';
|
|
42
|
+
image?: string | null;
|
|
43
|
+
name: string;
|
|
44
|
+
}>;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export declare const LegacyLiveGamesDocument: import("graphql/language/ast").DocumentNode;
|
package/dist/envs.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export declare const isDevEnabled: boolean;
|
|
2
1
|
export declare enum Environment {
|
|
3
2
|
GnosisDevXDAI = "GnosisDevXDAI",
|
|
4
3
|
GnosisXDAI = "GnosisXDAI",
|
|
5
4
|
PolygonUSDT = "PolygonUSDT",
|
|
6
|
-
PolygonAmoyAZUSD = "PolygonAmoyAZUSD",
|
|
7
5
|
PolygonAmoyUSDT = "PolygonAmoyUSDT",
|
|
8
6
|
ChilizWCHZ = "ChilizWCHZ",
|
|
9
7
|
ChilizSpicyWCHZ = "ChilizSpicyWCHZ",
|
package/dist/global.d.ts
CHANGED
|
@@ -12,8 +12,12 @@ export type ChainData = {
|
|
|
12
12
|
id: ChainId;
|
|
13
13
|
};
|
|
14
14
|
graphql: {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
bets: string;
|
|
16
|
+
feed: string;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Only for v2 feed
|
|
19
|
+
*/
|
|
20
|
+
legacyLive: string;
|
|
17
21
|
};
|
|
18
22
|
socket: string;
|
|
19
23
|
api: string;
|
|
@@ -24,20 +28,29 @@ export type ChainData = {
|
|
|
24
28
|
export type Selection = {
|
|
25
29
|
outcomeId: string;
|
|
26
30
|
conditionId: string;
|
|
27
|
-
coreAddress: string;
|
|
28
31
|
};
|
|
29
32
|
export type WaveId = number | 'active';
|
|
30
|
-
export
|
|
33
|
+
export declare enum BetState {
|
|
34
|
+
Created = "Created",
|
|
35
|
+
Pending = "Pending",
|
|
36
|
+
Sent = "Sent",
|
|
37
|
+
Accepted = "Accepted",
|
|
38
|
+
Rejected = "Rejected"
|
|
39
|
+
}
|
|
40
|
+
export type CreateBetResponse = {
|
|
41
|
+
id: string;
|
|
42
|
+
state: BetState;
|
|
43
|
+
errorMessage?: string;
|
|
44
|
+
};
|
|
45
|
+
export type BetClientData = {
|
|
31
46
|
attention: string;
|
|
32
47
|
affiliate: Address;
|
|
33
48
|
core: Address;
|
|
34
|
-
amount: string;
|
|
35
|
-
chainId: ChainId;
|
|
36
|
-
conditionId: string;
|
|
37
|
-
outcomeId: number;
|
|
38
|
-
minOdds: string;
|
|
39
|
-
nonce: string;
|
|
40
49
|
expiresAt: number;
|
|
50
|
+
chainId: ChainId;
|
|
41
51
|
relayerFeeAmount: string;
|
|
52
|
+
isBetSponsored: boolean;
|
|
53
|
+
isFeeSponsored: boolean;
|
|
54
|
+
isSponsoredBetReturnable: boolean;
|
|
42
55
|
};
|
|
43
56
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,32 +5,26 @@ export * from './abis';
|
|
|
5
5
|
export * from './docs';
|
|
6
6
|
export { getProviderFromId } from './utils/getProviderFromId';
|
|
7
7
|
export { calcMindOdds } from './utils/calcMindOdds';
|
|
8
|
-
export {
|
|
9
|
-
export { getGameStatus, GameStatus } from './utils/getGameStatus';
|
|
8
|
+
export { getIsPendingResolution } from './utils/getIsPendingResolution';
|
|
10
9
|
export { getBetStatus, BetStatus } from './utils/getBetStatus';
|
|
11
|
-
export {
|
|
12
|
-
export { getPrematchBetDataBytes } from './utils/getPrematchBetDataBytes';
|
|
10
|
+
export { getBetFee, type BetFeeResponse } from './utils/getBetFee';
|
|
13
11
|
export { groupConditionsByMarket, type GameMarkets, type MarketOutcome, type Market } from './utils/groupConditionsByMarket';
|
|
14
|
-
export { groupByConditionId } from './utils/groupByConditionId';
|
|
15
12
|
export { setupContracts, type Contracts } from './utils/setupContracts';
|
|
16
|
-
export {
|
|
13
|
+
export { getFeedGraphqlEndpoint, getBetsGraphqlEndpoint, getApiEndpoint, getSocketEndpoint } from './utils/getEndpoints';
|
|
17
14
|
export { getFreeBets, FreeBetStatus, type FreeBet } from './utils/getFreebets';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
15
|
+
export { getBetTypedData } from './utils/getBetTypedData';
|
|
16
|
+
export { getComboBetTypedData } from './utils/getComboBetTypedData';
|
|
17
|
+
export { createBet } from './utils/createBet';
|
|
18
|
+
export { createComboBet } from './utils/createComboBet';
|
|
19
|
+
export { getBet, type GetBetResponse } from './utils/getBet';
|
|
20
|
+
export { getMaxBet, type GetMaxBetResponse } from './utils/getMaxBet';
|
|
21
21
|
export { getWaveLevels, WaveLevelName, type WaveLevelData, type WaveLevelsResponse } from './utils/wave/getWaveLevels';
|
|
22
22
|
export { getWaveStats, type WaveStatsResponse } from './utils/wave/getWaveStats';
|
|
23
23
|
export { getWavePeriods, type WavePeriodsResponse } from './utils/wave/getWavePeriods';
|
|
24
24
|
export { getWaveLeaderBoard, type WaveLeaderBoardItem } from './utils/wave/getWaveLeaderBoard';
|
|
25
25
|
export { activateWave } from './utils/wave/activateWave';
|
|
26
|
-
export { createDeBridgeBet, type DeBridgeCreateTxResponse } from './utils/deBridge/createDeBridgeBet';
|
|
27
|
-
export { getDeBridgeSupportedChains, deBridgeChainIdByOriginalChainId, type DeBridgeSupportedChains } from './utils/deBridge/getDeBridgeSupportedChains';
|
|
28
|
-
export { getDeBridgeSupportedTokens, type DeBridgeSupportedTokens } from './utils/deBridge/getDeBridgeSupportedTokens';
|
|
29
|
-
export { getDeBridgeOrder, DeBridgeOrderStatus, DeBridgeExternalCallStatus } from './utils/deBridge/getDeBridgeOrder';
|
|
30
26
|
export { getPrecalculatedCashouts, type GetPrecalculatedCashouts } from './utils/cashout/getPrecalculatedCashouts';
|
|
31
27
|
export { getCalculatedCashout, type GetCalculatedCashout } from './utils/cashout/getCalculatedCashout';
|
|
32
28
|
export { getCashoutTypedData } from './utils/cashout/getCashoutTypedData';
|
|
33
29
|
export { createCashout, CashoutState, type CreateCashoutResponse } from './utils/cashout/createCashout';
|
|
34
30
|
export { getCashout, type GetCashoutResponse } from './utils/cashout/getCashout';
|
|
35
|
-
export { getCashbackBalance, type GetCashbackBalance } from './utils/cashback/getCashbackBalance';
|
|
36
|
-
export { createCashbackTransaction, type CashbackTransaction } from './utils/cashback/createCashbackTransaction';
|