@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,137 +0,0 @@
|
|
|
1
|
-
declare const _default: readonly [{
|
|
2
|
-
readonly inputs: readonly [];
|
|
3
|
-
readonly stateMutability: "nonpayable";
|
|
4
|
-
readonly type: "constructor";
|
|
5
|
-
}, {
|
|
6
|
-
readonly inputs: readonly [];
|
|
7
|
-
readonly name: "IncorrectValue";
|
|
8
|
-
readonly type: "error";
|
|
9
|
-
}, {
|
|
10
|
-
readonly anonymous: false;
|
|
11
|
-
readonly inputs: readonly [{
|
|
12
|
-
readonly indexed: false;
|
|
13
|
-
readonly internalType: "uint8";
|
|
14
|
-
readonly name: "version";
|
|
15
|
-
readonly type: "uint8";
|
|
16
|
-
}];
|
|
17
|
-
readonly name: "Initialized";
|
|
18
|
-
readonly type: "event";
|
|
19
|
-
}, {
|
|
20
|
-
readonly anonymous: false;
|
|
21
|
-
readonly inputs: readonly [{
|
|
22
|
-
readonly indexed: true;
|
|
23
|
-
readonly internalType: "address";
|
|
24
|
-
readonly name: "previousOwner";
|
|
25
|
-
readonly type: "address";
|
|
26
|
-
}, {
|
|
27
|
-
readonly indexed: true;
|
|
28
|
-
readonly internalType: "address";
|
|
29
|
-
readonly name: "newOwner";
|
|
30
|
-
readonly type: "address";
|
|
31
|
-
}];
|
|
32
|
-
readonly name: "OwnershipTransferred";
|
|
33
|
-
readonly type: "event";
|
|
34
|
-
}, {
|
|
35
|
-
readonly inputs: readonly [{
|
|
36
|
-
readonly internalType: "address";
|
|
37
|
-
readonly name: "lp";
|
|
38
|
-
readonly type: "address";
|
|
39
|
-
}, {
|
|
40
|
-
readonly components: readonly [{
|
|
41
|
-
readonly internalType: "address";
|
|
42
|
-
readonly name: "core";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}, {
|
|
45
|
-
readonly internalType: "uint128";
|
|
46
|
-
readonly name: "amount";
|
|
47
|
-
readonly type: "uint128";
|
|
48
|
-
}, {
|
|
49
|
-
readonly internalType: "uint64";
|
|
50
|
-
readonly name: "expiresAt";
|
|
51
|
-
readonly type: "uint64";
|
|
52
|
-
}, {
|
|
53
|
-
readonly components: readonly [{
|
|
54
|
-
readonly internalType: "address";
|
|
55
|
-
readonly name: "affiliate";
|
|
56
|
-
readonly type: "address";
|
|
57
|
-
}, {
|
|
58
|
-
readonly internalType: "uint64";
|
|
59
|
-
readonly name: "minOdds";
|
|
60
|
-
readonly type: "uint64";
|
|
61
|
-
}, {
|
|
62
|
-
readonly internalType: "bytes";
|
|
63
|
-
readonly name: "data";
|
|
64
|
-
readonly type: "bytes";
|
|
65
|
-
}];
|
|
66
|
-
readonly internalType: "struct IBet.BetData";
|
|
67
|
-
readonly name: "extraData";
|
|
68
|
-
readonly type: "tuple";
|
|
69
|
-
}];
|
|
70
|
-
readonly internalType: "struct IProxyFront.BetData[]";
|
|
71
|
-
readonly name: "data";
|
|
72
|
-
readonly type: "tuple[]";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "bet";
|
|
75
|
-
readonly outputs: readonly [];
|
|
76
|
-
readonly stateMutability: "payable";
|
|
77
|
-
readonly type: "function";
|
|
78
|
-
}, {
|
|
79
|
-
readonly inputs: readonly [{
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
readonly name: "account";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}];
|
|
84
|
-
readonly name: "checkOwner";
|
|
85
|
-
readonly outputs: readonly [];
|
|
86
|
-
readonly stateMutability: "view";
|
|
87
|
-
readonly type: "function";
|
|
88
|
-
}, {
|
|
89
|
-
readonly inputs: readonly [];
|
|
90
|
-
readonly name: "initialize";
|
|
91
|
-
readonly outputs: readonly [];
|
|
92
|
-
readonly stateMutability: "nonpayable";
|
|
93
|
-
readonly type: "function";
|
|
94
|
-
}, {
|
|
95
|
-
readonly inputs: readonly [];
|
|
96
|
-
readonly name: "owner";
|
|
97
|
-
readonly outputs: readonly [{
|
|
98
|
-
readonly internalType: "address";
|
|
99
|
-
readonly name: "";
|
|
100
|
-
readonly type: "address";
|
|
101
|
-
}];
|
|
102
|
-
readonly stateMutability: "view";
|
|
103
|
-
readonly type: "function";
|
|
104
|
-
}, {
|
|
105
|
-
readonly inputs: readonly [{
|
|
106
|
-
readonly internalType: "address";
|
|
107
|
-
readonly name: "newOwner";
|
|
108
|
-
readonly type: "address";
|
|
109
|
-
}];
|
|
110
|
-
readonly name: "transferOwnership";
|
|
111
|
-
readonly outputs: readonly [];
|
|
112
|
-
readonly stateMutability: "nonpayable";
|
|
113
|
-
readonly type: "function";
|
|
114
|
-
}, {
|
|
115
|
-
readonly inputs: readonly [{
|
|
116
|
-
readonly components: readonly [{
|
|
117
|
-
readonly internalType: "address";
|
|
118
|
-
readonly name: "core";
|
|
119
|
-
readonly type: "address";
|
|
120
|
-
}, {
|
|
121
|
-
readonly internalType: "uint256";
|
|
122
|
-
readonly name: "tokenId";
|
|
123
|
-
readonly type: "uint256";
|
|
124
|
-
}];
|
|
125
|
-
readonly internalType: "struct IProxyFront.WithdrawPayoutData[]";
|
|
126
|
-
readonly name: "data";
|
|
127
|
-
readonly type: "tuple[]";
|
|
128
|
-
}];
|
|
129
|
-
readonly name: "withdrawPayouts";
|
|
130
|
-
readonly outputs: readonly [];
|
|
131
|
-
readonly stateMutability: "nonpayable";
|
|
132
|
-
readonly type: "function";
|
|
133
|
-
}, {
|
|
134
|
-
readonly stateMutability: "payable";
|
|
135
|
-
readonly type: "receive";
|
|
136
|
-
}];
|
|
137
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type LiveConditionQueryVariables = Types.Exact<{
|
|
3
|
-
conditionId: Types.Scalars['ID']['input'];
|
|
4
|
-
}>;
|
|
5
|
-
export type LiveConditionQuery = {
|
|
6
|
-
__typename?: 'Query';
|
|
7
|
-
condition?: {
|
|
8
|
-
__typename?: 'Condition';
|
|
9
|
-
id: string;
|
|
10
|
-
conditionId: string;
|
|
11
|
-
status: Types.ConditionStatus;
|
|
12
|
-
outcomes: Array<{
|
|
13
|
-
__typename?: 'Outcome';
|
|
14
|
-
outcomeId: string;
|
|
15
|
-
}>;
|
|
16
|
-
game: {
|
|
17
|
-
__typename?: 'Game';
|
|
18
|
-
gameId: string;
|
|
19
|
-
sport: {
|
|
20
|
-
__typename?: 'Sport';
|
|
21
|
-
sportId: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
} | null;
|
|
25
|
-
};
|
|
26
|
-
export declare const LiveConditionDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as Types from '../types';
|
|
2
|
-
export type LiveConditionFragment = {
|
|
3
|
-
__typename?: 'Condition';
|
|
4
|
-
id: string;
|
|
5
|
-
conditionId: string;
|
|
6
|
-
status: Types.ConditionStatus;
|
|
7
|
-
outcomes: Array<{
|
|
8
|
-
__typename?: 'Outcome';
|
|
9
|
-
outcomeId: string;
|
|
10
|
-
}>;
|
|
11
|
-
game: {
|
|
12
|
-
__typename?: 'Game';
|
|
13
|
-
gameId: string;
|
|
14
|
-
sport: {
|
|
15
|
-
__typename?: 'Sport';
|
|
16
|
-
sportId: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const LiveConditionFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type PrematchConditionsQueryVariables = Types.Exact<{
|
|
3
|
-
where: Types.Condition_Filter;
|
|
4
|
-
orderBy?: Types.InputMaybe<Types.Condition_OrderBy>;
|
|
5
|
-
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
6
|
-
}>;
|
|
7
|
-
export type PrematchConditionsQuery = {
|
|
8
|
-
__typename?: 'Query';
|
|
9
|
-
conditions: Array<{
|
|
10
|
-
__typename?: 'Condition';
|
|
11
|
-
wonOutcomeIds?: Array<string> | null;
|
|
12
|
-
id: string;
|
|
13
|
-
conditionId: string;
|
|
14
|
-
status: Types.ConditionStatus;
|
|
15
|
-
title?: string | null;
|
|
16
|
-
isExpressForbidden: boolean;
|
|
17
|
-
margin: string;
|
|
18
|
-
outcomes: Array<{
|
|
19
|
-
__typename?: 'Outcome';
|
|
20
|
-
title?: string | null;
|
|
21
|
-
outcomeId: string;
|
|
22
|
-
odds: string;
|
|
23
|
-
}>;
|
|
24
|
-
core: {
|
|
25
|
-
__typename?: 'CoreContract';
|
|
26
|
-
address: string;
|
|
27
|
-
liquidityPool: {
|
|
28
|
-
__typename?: 'LiquidityPoolContract';
|
|
29
|
-
address: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
game: {
|
|
33
|
-
__typename?: 'Game';
|
|
34
|
-
gameId: string;
|
|
35
|
-
sport: {
|
|
36
|
-
__typename?: 'Sport';
|
|
37
|
-
sportId: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}>;
|
|
41
|
-
};
|
|
42
|
-
export declare const PrematchConditionsDocument: import("graphql/language/ast").DocumentNode;
|
package/dist/utils/calcOdds.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Config } from '@wagmi/core';
|
|
2
|
-
import { type ChainId } from '../config';
|
|
3
|
-
import { type Selection } from '../global';
|
|
4
|
-
type OddsData = {
|
|
5
|
-
conditionId: string;
|
|
6
|
-
margin: number;
|
|
7
|
-
reinforcement: number;
|
|
8
|
-
winningOutcomesCount: number;
|
|
9
|
-
outcomes: Record<string, {
|
|
10
|
-
odds: number;
|
|
11
|
-
clearOdds: number;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
type CalcLiveOddsProps = {
|
|
15
|
-
selection: Selection;
|
|
16
|
-
oddsData: OddsData;
|
|
17
|
-
betAmount?: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const calcLiveOdds: ({ selection, betAmount, oddsData }: CalcLiveOddsProps) => number;
|
|
20
|
-
type CalcPrematchOddsProps = {
|
|
21
|
-
config: Config;
|
|
22
|
-
selections: Selection[];
|
|
23
|
-
chainId: ChainId;
|
|
24
|
-
betAmount?: string;
|
|
25
|
-
batchBetAmounts?: Record<string, string>;
|
|
26
|
-
};
|
|
27
|
-
export declare const calcPrematchOdds: (props: CalcPrematchOddsProps) => Promise<Record<string, number>>;
|
|
28
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type Address, type Hex } from 'viem';
|
|
2
|
-
import { type ChainId } from '../config';
|
|
3
|
-
import { type LiveBet } from '../global';
|
|
4
|
-
export declare enum LiveBetState {
|
|
5
|
-
Created = "Created",
|
|
6
|
-
Pending = "Pending",
|
|
7
|
-
Sent = "Sent",
|
|
8
|
-
Accepted = "Accepted",
|
|
9
|
-
Rejected = "Rejected"
|
|
10
|
-
}
|
|
11
|
-
export type CreateLiveBetResponse = {
|
|
12
|
-
id: string;
|
|
13
|
-
state: LiveBetState;
|
|
14
|
-
errorMessage?: string;
|
|
15
|
-
};
|
|
16
|
-
type Props = {
|
|
17
|
-
chainId: ChainId;
|
|
18
|
-
account: Address;
|
|
19
|
-
bet: LiveBet;
|
|
20
|
-
signature: Hex;
|
|
21
|
-
};
|
|
22
|
-
export declare const createLiveBet: (props: Props) => Promise<CreateLiveBetResponse | null>;
|
|
23
|
-
export {};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { type Address, type Hex } from 'viem';
|
|
2
|
-
import { type Selection } from '../../global';
|
|
3
|
-
import { type ChainId } from '../../config';
|
|
4
|
-
export type DeBridgeCreateTxResponse = {
|
|
5
|
-
orderId: Hex;
|
|
6
|
-
estimation: {
|
|
7
|
-
srcChainTokenIn: {
|
|
8
|
-
address: Address;
|
|
9
|
-
name: string;
|
|
10
|
-
symbol: string;
|
|
11
|
-
decimals: number;
|
|
12
|
-
amount: string;
|
|
13
|
-
approximateOperatingExpense: string;
|
|
14
|
-
mutatedWithOperatingExpense: boolean;
|
|
15
|
-
};
|
|
16
|
-
srcChainTokenOut: {
|
|
17
|
-
address: Address;
|
|
18
|
-
name: string;
|
|
19
|
-
symbol: string;
|
|
20
|
-
decimals: number;
|
|
21
|
-
amount: string;
|
|
22
|
-
maxRefundAmount: string;
|
|
23
|
-
};
|
|
24
|
-
dstChainTokenOut: {
|
|
25
|
-
address: Address;
|
|
26
|
-
name: string;
|
|
27
|
-
symbol: string;
|
|
28
|
-
decimals: number;
|
|
29
|
-
amount: string;
|
|
30
|
-
recommendedAmount: string;
|
|
31
|
-
withoutAdditionalTakerRewardsAmount: string;
|
|
32
|
-
maxTheoreticalAmount: string;
|
|
33
|
-
};
|
|
34
|
-
recommendedSlippage: number;
|
|
35
|
-
costsDetails: [string];
|
|
36
|
-
};
|
|
37
|
-
tx: {
|
|
38
|
-
to: Address;
|
|
39
|
-
data: Hex;
|
|
40
|
-
value: bigint;
|
|
41
|
-
};
|
|
42
|
-
order: {
|
|
43
|
-
approximateFulfillmentDelay: number;
|
|
44
|
-
};
|
|
45
|
-
prependedOperatingExpenseCost: string;
|
|
46
|
-
fixFee: string;
|
|
47
|
-
userPoints: number;
|
|
48
|
-
integratorPoints: number;
|
|
49
|
-
};
|
|
50
|
-
type Props = {
|
|
51
|
-
account: Address;
|
|
52
|
-
betAmount: string;
|
|
53
|
-
dstChainId: ChainId;
|
|
54
|
-
srcChainId: number;
|
|
55
|
-
srcChainTokenIn: string;
|
|
56
|
-
selections: Selection[];
|
|
57
|
-
totalOdds: number;
|
|
58
|
-
slippage: number;
|
|
59
|
-
affiliate: Address;
|
|
60
|
-
referralCode: number;
|
|
61
|
-
deadline?: number;
|
|
62
|
-
};
|
|
63
|
-
export declare const DE_BRIDGE_DEFAULT_DEADLINE = 300;
|
|
64
|
-
export declare const createDeBridgeBet: (props: Props) => Promise<DeBridgeCreateTxResponse | null>;
|
|
65
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type Hex } from 'viem';
|
|
2
|
-
export declare enum DeBridgeOrderStatus {
|
|
3
|
-
None = "None",
|
|
4
|
-
Created = "Created",
|
|
5
|
-
Fulfilled = "Fulfilled",
|
|
6
|
-
SentUnlock = "SentUnlock",
|
|
7
|
-
OrderCancelled = "OrderCancelled",
|
|
8
|
-
SentOrderCancel = "SentOrderCancel",
|
|
9
|
-
ClaimedUnlock = "ClaimedUnlock",
|
|
10
|
-
ClaimedOrderCancel = "ClaimedOrderCancel"
|
|
11
|
-
}
|
|
12
|
-
export declare enum DeBridgeExternalCallStatus {
|
|
13
|
-
NoExtCall = "NoExtCall",
|
|
14
|
-
AwaitingOrderFulfillment = "AwaitingOrderFulfillment",
|
|
15
|
-
AwaitingExecution = "AwaitingExecution",
|
|
16
|
-
Executing = "Executing",
|
|
17
|
-
Completed = "Completed",
|
|
18
|
-
Failed = "Failed",
|
|
19
|
-
Cancelled = "Cancelled"
|
|
20
|
-
}
|
|
21
|
-
type OrderStatusResponse = {
|
|
22
|
-
orderId: {
|
|
23
|
-
stringValue: Hex;
|
|
24
|
-
};
|
|
25
|
-
fulfilledDstEventMetadata: {
|
|
26
|
-
transactionHash: {
|
|
27
|
-
stringValue: Hex;
|
|
28
|
-
};
|
|
29
|
-
} | null;
|
|
30
|
-
state: DeBridgeOrderStatus;
|
|
31
|
-
externalCallState: DeBridgeExternalCallStatus;
|
|
32
|
-
takeOfferWithMetadata: {
|
|
33
|
-
chainId: {
|
|
34
|
-
bigIntegerValue: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export declare const getDeBridgeOrder: (orderId: Hex) => Promise<OrderStatusResponse | null>;
|
|
39
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type SupportedChainsResponse = {
|
|
2
|
-
chains: {
|
|
3
|
-
chainId: number;
|
|
4
|
-
originalChainId: number;
|
|
5
|
-
chainName: string;
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
8
|
-
export declare const deBridgeChainIdByOriginalChainId: Record<number, number>;
|
|
9
|
-
export type DeBridgeSupportedChains = SupportedChainsResponse['chains'] | null;
|
|
10
|
-
export declare const getDeBridgeSupportedChains: () => Promise<DeBridgeSupportedChains>;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type SupportedTokensResponse = {
|
|
2
|
-
tokens: Record<string, {
|
|
3
|
-
address: string;
|
|
4
|
-
symbol: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
name: string;
|
|
7
|
-
logoURI: string;
|
|
8
|
-
tags: Array<string>;
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
11
|
-
export type DeBridgeSupportedTokens = SupportedTokensResponse['tokens'] | null;
|
|
12
|
-
export declare const getDeBridgeSupportedTokens: (chainId: number) => Promise<DeBridgeSupportedTokens>;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { GameStatus as GraphGameStatus } from '../docs/live/types';
|
|
2
|
-
export declare enum GameStatus {
|
|
3
|
-
Created = 0,
|
|
4
|
-
Live = 1,
|
|
5
|
-
Resolved = 2,
|
|
6
|
-
Canceled = 3,
|
|
7
|
-
Paused = 4,
|
|
8
|
-
PendingResolution = 5
|
|
9
|
-
}
|
|
10
|
-
type Props = {
|
|
11
|
-
graphStatus: GraphGameStatus;
|
|
12
|
-
startsAt: number;
|
|
13
|
-
isGameInLive: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const getGameStatus: (props: Props) => GameStatus;
|
|
16
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ChainId } from '../config';
|
|
2
|
-
import { type CreateLiveBetResponse } from './createLiveBet';
|
|
3
|
-
export type GetLiveBetResponse = {
|
|
4
|
-
txHash: string;
|
|
5
|
-
odds: string;
|
|
6
|
-
betId: string;
|
|
7
|
-
} & CreateLiveBetResponse;
|
|
8
|
-
type Props = {
|
|
9
|
-
chainId: ChainId;
|
|
10
|
-
orderId: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const getLiveBet: ({ chainId, orderId }: Props) => Promise<GetLiveBetResponse | null>;
|
|
13
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SignTypedDataParameters, type Address } from 'viem';
|
|
2
|
-
import { type ChainId, LIVE_BET_DATA_TYPES } from '../config';
|
|
3
|
-
import { type LiveBet } from '../global';
|
|
4
|
-
type Props = {
|
|
5
|
-
chainId: ChainId;
|
|
6
|
-
account: Address;
|
|
7
|
-
bet: LiveBet;
|
|
8
|
-
};
|
|
9
|
-
export declare const getLiveBetTypedData: ({ account, chainId, bet }: Props) => SignTypedDataParameters<typeof LIVE_BET_DATA_TYPES>;
|
|
10
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|