@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
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 { type Condition_Filter,
|
|
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/legacyLiveBets';
|
|
7
|
+
export * from './bets/legacyPrematchBets';
|
|
8
|
+
export * from './bets/gameBets';
|
|
9
|
+
export * from './bets/bets';
|
|
10
|
+
export * from './feed/fragments/condition';
|
|
11
|
+
export * from './feed/fragments/gameInfo';
|
|
12
|
+
export * from './feed/condition';
|
|
13
|
+
export * from './feed/conditions';
|
|
14
|
+
export * from './feed/conditionsBatch';
|
|
15
|
+
export * from './feed/game';
|
|
16
|
+
export * from './feed/games';
|
|
17
|
+
export * from './feed/navigation';
|
|
18
|
+
export * from './feed/sports';
|
|
19
|
+
export * from './feed/sportsNavigation';
|
|
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, } from './bets/types';
|
|
21
|
+
export { type Condition_Filter, Game_OrderBy, ConditionState, OrderDirection, GameState, Condition_OrderBy, } from './feed/types';
|
package/dist/global.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export type ChainData = {
|
|
|
12
12
|
id: ChainId;
|
|
13
13
|
};
|
|
14
14
|
graphql: {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
bets: string;
|
|
16
|
+
feed: string;
|
|
17
17
|
};
|
|
18
18
|
socket: string;
|
|
19
19
|
api: string;
|
|
@@ -24,20 +24,26 @@ export type ChainData = {
|
|
|
24
24
|
export type Selection = {
|
|
25
25
|
outcomeId: string;
|
|
26
26
|
conditionId: string;
|
|
27
|
-
coreAddress: string;
|
|
28
27
|
};
|
|
29
28
|
export type WaveId = number | 'active';
|
|
30
|
-
export
|
|
29
|
+
export declare enum BetState {
|
|
30
|
+
Created = "Created",
|
|
31
|
+
Pending = "Pending",
|
|
32
|
+
Sent = "Sent",
|
|
33
|
+
Accepted = "Accepted",
|
|
34
|
+
Rejected = "Rejected"
|
|
35
|
+
}
|
|
36
|
+
export type CreateBetResponse = {
|
|
37
|
+
id: string;
|
|
38
|
+
state: BetState;
|
|
39
|
+
errorMessage?: string;
|
|
40
|
+
};
|
|
41
|
+
export type BetClientData = {
|
|
31
42
|
attention: string;
|
|
32
43
|
affiliate: Address;
|
|
33
44
|
core: Address;
|
|
34
|
-
amount: string;
|
|
35
|
-
chainId: ChainId;
|
|
36
|
-
conditionId: string;
|
|
37
|
-
outcomeId: number;
|
|
38
|
-
minOdds: string;
|
|
39
|
-
nonce: string;
|
|
40
45
|
expiresAt: number;
|
|
46
|
+
chainId: ChainId;
|
|
41
47
|
relayerFeeAmount: string;
|
|
42
48
|
};
|
|
43
49
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,28 +5,24 @@ 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';
|