@myx-trade/sdk 0.1.245-beta.9 → 0.1.246
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/dist/index.d.mts +192 -446
- package/dist/index.d.ts +192 -446
- package/dist/index.js +676 -2775
- package/dist/index.mjs +676 -2765
- package/package.json +21 -18
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import { ZeroAddress, AddressLike, Signer, ethers as ethers$1, BrowserProvider,
|
|
|
3
3
|
export { formatUnits, parseUnits } from 'ethers';
|
|
4
4
|
import { Options, Event } from 'reconnecting-websocket';
|
|
5
5
|
import { Address as Address$2, WalletClient } from 'viem';
|
|
6
|
-
import { WretchOptions } from 'wretch/types';
|
|
7
6
|
|
|
8
7
|
type Address$1 = `0x${string}` | typeof ZeroAddress;
|
|
9
8
|
declare enum ChainId {
|
|
@@ -31,8 +30,6 @@ interface ContractAddress {
|
|
|
31
30
|
readonly DATA_PROVIDER: Address$1;
|
|
32
31
|
readonly ORACLE_RESERVE: Address$1;
|
|
33
32
|
readonly FORWARDER: Address$1;
|
|
34
|
-
readonly REIMBURSEMENT: Address$1;
|
|
35
|
-
readonly DISPUTE_COURT: Address$1;
|
|
36
33
|
readonly TRADING_ROUTER: Address$1;
|
|
37
34
|
}
|
|
38
35
|
|
|
@@ -735,6 +732,7 @@ type ForwarderTxParams = {
|
|
|
735
732
|
data: string;
|
|
736
733
|
deadline: number;
|
|
737
734
|
signature: string;
|
|
735
|
+
forwardFeeToken: string;
|
|
738
736
|
};
|
|
739
737
|
type FetchForwarderGetParams = {
|
|
740
738
|
requestId: string;
|
|
@@ -760,8 +758,6 @@ interface PoolSymbolAllResponse {
|
|
|
760
758
|
baseSymbol: string;
|
|
761
759
|
quoteSymbol: string;
|
|
762
760
|
baseTokenIcon: string;
|
|
763
|
-
baseToken: string;
|
|
764
|
-
quoteToken: string;
|
|
765
761
|
}
|
|
766
762
|
|
|
767
763
|
declare const getBaseUrlByEnv: () => "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
@@ -962,13 +958,17 @@ declare namespace index$1 {
|
|
|
962
958
|
export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
|
|
963
959
|
}
|
|
964
960
|
|
|
965
|
-
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
|
|
961
|
+
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
966
962
|
quoteToken: string;
|
|
967
963
|
baseReserveRatio: bigint;
|
|
968
964
|
quoteReserveRatio: bigint;
|
|
969
965
|
oracleFeeUsd: bigint;
|
|
970
966
|
oracleRefundFeeUsd: bigint;
|
|
971
967
|
poolPrimeThreshold: bigint;
|
|
968
|
+
executionFee: bigint;
|
|
969
|
+
maxExecutionFee: bigint;
|
|
970
|
+
forwardFee: bigint;
|
|
971
|
+
maxForwardFee: bigint;
|
|
972
972
|
}) | undefined>;
|
|
973
973
|
|
|
974
974
|
declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
|
|
@@ -1364,7 +1364,7 @@ declare class Utils {
|
|
|
1364
1364
|
constructor(configManager: ConfigManager, logger: Logger);
|
|
1365
1365
|
getOrderIdFromTransaction(receipt: any): string | null;
|
|
1366
1366
|
private getApproveQuoteAmount;
|
|
1367
|
-
needsApproval(
|
|
1367
|
+
needsApproval(address: string, chainId: number, quoteAddress: string, requiredAmount: string, spenderAddress?: string): Promise<boolean>;
|
|
1368
1368
|
approveAuthorization({ chainId, quoteAddress, amount, spenderAddress, signer, }: {
|
|
1369
1369
|
chainId: number;
|
|
1370
1370
|
quoteAddress: string;
|
|
@@ -1397,16 +1397,13 @@ declare class Utils {
|
|
|
1397
1397
|
publishTime: number;
|
|
1398
1398
|
oracleType: OracleType;
|
|
1399
1399
|
vaa: string;
|
|
1400
|
-
}
|
|
1401
|
-
buildUpdatePriceParams(poolId: string, chainId: number): Promise<{
|
|
1402
|
-
poolId: string;
|
|
1403
|
-
referencePrice: bigint;
|
|
1404
|
-
oracleUpdateData: string;
|
|
1405
|
-
publishTime: number;
|
|
1406
|
-
oracleType: OracleType;
|
|
1407
|
-
value: bigint;
|
|
1400
|
+
} | {
|
|
1408
1401
|
price: string;
|
|
1409
|
-
|
|
1402
|
+
vaa: string;
|
|
1403
|
+
publishTime: number;
|
|
1404
|
+
poolId: string;
|
|
1405
|
+
value: number;
|
|
1406
|
+
}>;
|
|
1410
1407
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1411
1408
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1412
1409
|
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
@@ -1485,272 +1482,15 @@ declare class Utils {
|
|
|
1485
1482
|
data?: undefined;
|
|
1486
1483
|
}>;
|
|
1487
1484
|
formatErrorMessage(error: any): any;
|
|
1488
|
-
getGasPriceByRatio(): Promise<bigint>;
|
|
1489
|
-
getGasLimitByRatio(gasLimit: bigint): Promise<bigint>;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
declare enum AppealType {
|
|
1493
|
-
UnderReview = 1,
|
|
1494
|
-
InitialVote = 2,
|
|
1495
|
-
PublicNotice = 3,
|
|
1496
|
-
UnderReconsideration = 4,
|
|
1497
|
-
Won = 5,
|
|
1498
|
-
Failed = 6,
|
|
1499
|
-
PlatformRuling = 7,
|
|
1500
|
-
PlatformRevoked = 8
|
|
1501
|
-
}
|
|
1502
|
-
declare enum AppealReconsiderationType {
|
|
1503
|
-
InitialVoting = 1,
|
|
1504
|
-
PublicNotice = 2,
|
|
1505
|
-
UnderReconsideration = 3,
|
|
1506
|
-
Won = 4,
|
|
1507
|
-
Failed = 5,
|
|
1508
|
-
PlatformRuling = 6,
|
|
1509
|
-
PlatformRevoked = 7,
|
|
1510
|
-
ReconsiderationVoting = 8
|
|
1511
|
-
}
|
|
1512
|
-
declare enum AppealStage {
|
|
1513
|
-
UnderReview = 1,
|
|
1514
|
-
PublicNotice = 2,
|
|
1515
|
-
UnderReconsideration = 3,
|
|
1516
|
-
Completed = 4
|
|
1517
|
-
}
|
|
1518
|
-
interface GetAppealListParams {
|
|
1519
|
-
chainId?: number;
|
|
1520
|
-
poolId?: string;
|
|
1521
|
-
type?: AppealType;
|
|
1522
|
-
stage?: AppealStage;
|
|
1523
|
-
before?: number;
|
|
1524
|
-
after?: number;
|
|
1525
|
-
limit?: number;
|
|
1526
|
-
}
|
|
1527
|
-
interface AppealListItem {
|
|
1528
|
-
id: number;
|
|
1529
|
-
chainId: number;
|
|
1530
|
-
caseId: number;
|
|
1531
|
-
poolId: string;
|
|
1532
|
-
complainant: string;
|
|
1533
|
-
poolToken: string;
|
|
1534
|
-
disputeBond: string;
|
|
1535
|
-
type: AppealType;
|
|
1536
|
-
stage: AppealStage;
|
|
1537
|
-
totalVoteCount: number;
|
|
1538
|
-
votedCount: number;
|
|
1539
|
-
appealCount: number;
|
|
1540
|
-
appealDeadline: number;
|
|
1541
|
-
compClaimDeadline: number;
|
|
1542
|
-
updateTime: number;
|
|
1543
|
-
}
|
|
1544
|
-
interface GetAppealDetailParams {
|
|
1545
|
-
caseId: number;
|
|
1546
|
-
}
|
|
1547
|
-
declare enum NodeTypeEnum {
|
|
1548
|
-
ElectionNode = 0,
|
|
1549
|
-
OfficialNode = 1
|
|
1550
|
-
}
|
|
1551
|
-
declare enum VoteTypeEnum {
|
|
1552
|
-
Reject = 0,
|
|
1553
|
-
Support = 1
|
|
1554
|
-
}
|
|
1555
|
-
interface AppealVoteItem {
|
|
1556
|
-
time: number;
|
|
1557
|
-
node: string;
|
|
1558
|
-
type: NodeTypeEnum;
|
|
1559
|
-
option: VoteTypeEnum;
|
|
1560
|
-
}
|
|
1561
|
-
interface AppealReconsiderationItem {
|
|
1562
|
-
respondent: string;
|
|
1563
|
-
type: AppealReconsiderationType;
|
|
1564
|
-
stage: AppealStage;
|
|
1565
|
-
voteCount: number;
|
|
1566
|
-
totalVoteCount: number;
|
|
1567
|
-
}
|
|
1568
|
-
interface AppealDetail {
|
|
1569
|
-
caseId: number;
|
|
1570
|
-
chainId: number;
|
|
1571
|
-
poolId: string;
|
|
1572
|
-
complainant: string;
|
|
1573
|
-
poolToken: string;
|
|
1574
|
-
disputeBond: string;
|
|
1575
|
-
type: AppealType;
|
|
1576
|
-
stage: AppealStage;
|
|
1577
|
-
totalVoteCount: number;
|
|
1578
|
-
votedCount: number;
|
|
1579
|
-
appealCount: number;
|
|
1580
|
-
appealDeadline: number;
|
|
1581
|
-
voteDeadline: number;
|
|
1582
|
-
epochStartTime: number;
|
|
1583
|
-
epochEndTime: number;
|
|
1584
|
-
publicNoticeTime: number;
|
|
1585
|
-
respondents: string[];
|
|
1586
|
-
compClaimDeadline: number;
|
|
1587
|
-
votes: AppealVoteItem[];
|
|
1588
|
-
appeals: AppealReconsiderationItem[];
|
|
1589
|
-
disputeTime: number;
|
|
1590
|
-
txHash: string;
|
|
1591
|
-
disputeBondState: AppealClaimStatusEnum;
|
|
1592
|
-
}
|
|
1593
|
-
interface AppealUploadEvidenceParams {
|
|
1594
|
-
caseId: number;
|
|
1595
|
-
poolId: string;
|
|
1596
|
-
evidence: string;
|
|
1597
|
-
}
|
|
1598
|
-
interface GetAppealReconsiderationListParams {
|
|
1599
|
-
chainId?: number;
|
|
1600
|
-
poolId?: string;
|
|
1601
|
-
type?: AppealReconsiderationType;
|
|
1602
|
-
stage?: AppealStage;
|
|
1603
|
-
before?: number;
|
|
1604
|
-
after?: number;
|
|
1605
|
-
limit?: number;
|
|
1606
|
-
}
|
|
1607
|
-
interface AppealReconsiderationListItem {
|
|
1608
|
-
id: number;
|
|
1609
|
-
chainId: number;
|
|
1610
|
-
caseId: number;
|
|
1611
|
-
poolId: string;
|
|
1612
|
-
respondent: string;
|
|
1613
|
-
type: AppealReconsiderationType;
|
|
1614
|
-
stage: AppealStage;
|
|
1615
|
-
voteCount: number;
|
|
1616
|
-
totalVoteCount: number;
|
|
1617
|
-
appealToken: string;
|
|
1618
|
-
appealBond: string;
|
|
1619
|
-
appealDeadline: number;
|
|
1620
|
-
publicNoticeEndTime: number;
|
|
1621
|
-
updateTime: number;
|
|
1622
|
-
}
|
|
1623
|
-
interface GetAppealReconsiderationDetailParams {
|
|
1624
|
-
caseId: number;
|
|
1625
|
-
appealCaseId?: number;
|
|
1626
|
-
}
|
|
1627
|
-
interface AppealReconsiderationDetail {
|
|
1628
|
-
id: number;
|
|
1629
|
-
chainId: number;
|
|
1630
|
-
poolId: string;
|
|
1631
|
-
complainant: string;
|
|
1632
|
-
respondent: string;
|
|
1633
|
-
type: AppealReconsiderationType;
|
|
1634
|
-
stage: AppealStage;
|
|
1635
|
-
disputeTotalVoteCount: number;
|
|
1636
|
-
disputeVotedCount: number;
|
|
1637
|
-
disputeTxHash: string;
|
|
1638
|
-
disputeVoteDeadline: number;
|
|
1639
|
-
disputeStartTime: number;
|
|
1640
|
-
disputeVotes: AppealVoteItem[];
|
|
1641
|
-
publicNoticeStartTime: number;
|
|
1642
|
-
publicNoticeEndTime: number;
|
|
1643
|
-
appealDeadline: number;
|
|
1644
|
-
respondents: string[];
|
|
1645
|
-
appealToken: string;
|
|
1646
|
-
appealBond: string;
|
|
1647
|
-
appealVotes: AppealVoteItem[];
|
|
1648
|
-
appealTotalVoteCount: number;
|
|
1649
|
-
appealVotedCount: number;
|
|
1650
|
-
}
|
|
1651
|
-
interface AppealReimbursementParams {
|
|
1652
|
-
before?: number;
|
|
1653
|
-
after?: number;
|
|
1654
|
-
limit?: number;
|
|
1655
|
-
}
|
|
1656
|
-
declare enum AppealClaimStatusEnum {
|
|
1657
|
-
UnClaimed = 0,
|
|
1658
|
-
Claimed = 1
|
|
1659
|
-
}
|
|
1660
|
-
interface AppealReimbursementItem {
|
|
1661
|
-
id: number;
|
|
1662
|
-
caseId: number;
|
|
1663
|
-
chainId: number;
|
|
1664
|
-
poolId: string;
|
|
1665
|
-
baseAmount: string;
|
|
1666
|
-
quoteAmount: string;
|
|
1667
|
-
claimTime: number;
|
|
1668
|
-
expireTime: number;
|
|
1669
|
-
createTime: number;
|
|
1670
|
-
claimStatus: AppealClaimStatusEnum;
|
|
1671
|
-
}
|
|
1672
|
-
interface GetAppealNodeVoteListParams {
|
|
1673
|
-
before?: number;
|
|
1674
|
-
after?: number;
|
|
1675
|
-
limit?: number;
|
|
1676
|
-
}
|
|
1677
|
-
declare enum AppealNodeVotedStateEnum {
|
|
1678
|
-
NotVoted = 0,
|
|
1679
|
-
Voted = 1
|
|
1680
|
-
}
|
|
1681
|
-
declare enum AppealCaseTypeEnum {
|
|
1682
|
-
Appeal = 1,
|
|
1683
|
-
Reconsideration = 2
|
|
1684
|
-
}
|
|
1685
|
-
declare enum AppealNodeStateEnum {
|
|
1686
|
-
NoVote = 0,
|
|
1687
|
-
Supported = 1,
|
|
1688
|
-
Rejected = 2
|
|
1689
|
-
}
|
|
1690
|
-
interface AppealNodeVoteListItem {
|
|
1691
|
-
id: number;
|
|
1692
|
-
chainId: number;
|
|
1693
|
-
caseId: number;
|
|
1694
|
-
poolId: string;
|
|
1695
|
-
appealCaseId: number;
|
|
1696
|
-
type: AppealCaseTypeEnum;
|
|
1697
|
-
deadline: number;
|
|
1698
|
-
votedCount: number;
|
|
1699
|
-
totalVoteCount: number;
|
|
1700
|
-
voteOption: VoteTypeEnum;
|
|
1701
|
-
state: AppealNodeVotedStateEnum;
|
|
1702
|
-
nodeState: AppealNodeStateEnum;
|
|
1703
|
-
}
|
|
1704
|
-
interface AppealNodeVoteItem {
|
|
1705
|
-
voteDeadline: number;
|
|
1706
|
-
disputeEvidenceUrl: string;
|
|
1707
|
-
appealEvidenceUrl: NodeTypeEnum;
|
|
1708
|
-
disputeRemark: VoteTypeEnum;
|
|
1709
|
-
appealRemark: string;
|
|
1710
|
-
respondents: string[];
|
|
1711
|
-
respondent: string;
|
|
1712
|
-
}
|
|
1713
|
-
interface GetIsVoteNodeParams {
|
|
1714
|
-
account: string;
|
|
1715
|
-
}
|
|
1716
|
-
declare enum IsVoteNodeEnum {
|
|
1717
|
-
Yes = 1,
|
|
1718
|
-
No = 0
|
|
1719
|
-
}
|
|
1720
|
-
interface GetAppealVoteNodeDetailParams {
|
|
1721
|
-
caseId: number;
|
|
1722
|
-
appealCaseId?: number;
|
|
1723
|
-
}
|
|
1724
|
-
interface PostVoteSignatureParams {
|
|
1725
|
-
chainId: number;
|
|
1726
|
-
caseId: number;
|
|
1727
|
-
type: AppealCaseTypeEnum;
|
|
1728
|
-
validator: Address$2;
|
|
1729
|
-
voteOption: VoteTypeEnum;
|
|
1730
|
-
signature: string;
|
|
1731
|
-
}
|
|
1732
|
-
type PostVoteResponse = 1 | 0;
|
|
1733
|
-
|
|
1734
|
-
interface RequestOptions extends WretchOptions {
|
|
1735
|
-
auth?: boolean;
|
|
1736
|
-
}
|
|
1737
|
-
declare class Request {
|
|
1738
|
-
protected configManager: ConfigManager;
|
|
1739
|
-
constructor(configManager: ConfigManager);
|
|
1740
|
-
protected getHost(): "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
1741
|
-
private _preSigner;
|
|
1742
|
-
private _preUserAddress;
|
|
1743
|
-
private buildAuthParams;
|
|
1744
|
-
private buildRequestPath;
|
|
1745
|
-
protected get<T = Record<string, any>>(url: string, params: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1746
|
-
protected post<T = Record<string, any>>(url: string, data: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1747
|
-
protected put<T = Record<string, any>>(url: string, data: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1748
|
-
protected delete<T = Record<string, any>>(url: string, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1485
|
+
getGasPriceByRatio(chainId: number): Promise<bigint>;
|
|
1486
|
+
getGasLimitByRatio(chainId: number, gasLimit: bigint): Promise<bigint>;
|
|
1749
1487
|
}
|
|
1750
1488
|
|
|
1751
|
-
declare class Api
|
|
1489
|
+
declare class Api {
|
|
1490
|
+
private configManager;
|
|
1752
1491
|
private logger;
|
|
1753
1492
|
constructor(configManager: ConfigManager, logger: Logger);
|
|
1493
|
+
getHost(): "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
1754
1494
|
getTradeFlow({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<TradeFlowItem[]>>;
|
|
1755
1495
|
getPoolSymbolAll(): Promise<ApiResponse<PoolSymbolAllResponse[]>>;
|
|
1756
1496
|
fetchForwarderGetApi(params: FetchForwarderGetParams): Promise<FetchForwarderGetResponse>;
|
|
@@ -1758,11 +1498,11 @@ declare class Api extends Request {
|
|
|
1758
1498
|
forwarderTxApi(params: ForwarderTxParams, chainId: number): Promise<ApiResponse<any>>;
|
|
1759
1499
|
getOraclePrice(chainId: ChainId, poolIds?: string[]): Promise<Record<string, any>>;
|
|
1760
1500
|
getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
|
|
1761
|
-
getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
|
|
1501
|
+
getPoolLevelConfig({ poolId, chainId, }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
|
|
1762
1502
|
getPositions(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1763
1503
|
getOrders(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1764
1504
|
getPoolOpenOrders(accessToken: string, address: string, chainId: ChainId): Promise<PoolOpenOrdersResponse>;
|
|
1765
|
-
getKlineData({ chainId, poolId, endTime, limit, interval
|
|
1505
|
+
getKlineData({ chainId, poolId, endTime, limit, interval }: GetKlineDataParams): Promise<ApiResponse<KlineDataItemType[]>>;
|
|
1766
1506
|
getKlineLatestBar(params: Pick<GetKlineDataParams, "chainId" | "poolId" | "interval">): Promise<ApiResponse<KlineDataItemType>>;
|
|
1767
1507
|
getTickerData({ chainId, poolIds }: GetTickerDataParams): Promise<ApiResponse<TickerDataItem[]>>;
|
|
1768
1508
|
getAllTickers(): Promise<ApiResponse<TickerDataItem[]>>;
|
|
@@ -1776,32 +1516,14 @@ declare class Api extends Request {
|
|
|
1776
1516
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1777
1517
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1778
1518
|
getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
|
|
1779
|
-
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce
|
|
1519
|
+
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce }: {
|
|
1780
1520
|
address: string;
|
|
1781
1521
|
accessToken: string;
|
|
1782
1522
|
chainId: number;
|
|
1783
1523
|
deadline: number;
|
|
1784
1524
|
nonce: string;
|
|
1785
1525
|
}): Promise<ApiResponse<any>>;
|
|
1786
|
-
|
|
1787
|
-
* appeal module start ------>
|
|
1788
|
-
*/
|
|
1789
|
-
getAppealList(params: GetAppealListParams): Promise<ApiResponse<AppealListItem[]>>;
|
|
1790
|
-
getAppealDetail(params: GetAppealDetailParams): Promise<ApiResponse<AppealDetail>>;
|
|
1791
|
-
uploadAppealEvidence(params: AppealUploadEvidenceParams): Promise<ApiResponse<null>>;
|
|
1792
|
-
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
1793
|
-
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
1794
|
-
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1795
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
1796
|
-
getAppealNodeVoteDetails(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1797
|
-
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1798
|
-
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
1799
|
-
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
1800
|
-
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
1801
|
-
/**
|
|
1802
|
-
* appeal module end ------>
|
|
1803
|
-
*/
|
|
1804
|
-
getCurrentEpoch({ address, accessToken, broker, }: {
|
|
1526
|
+
getCurrentEpoch({ address, accessToken, broker }: {
|
|
1805
1527
|
address: string;
|
|
1806
1528
|
accessToken: string;
|
|
1807
1529
|
broker: string;
|
|
@@ -1932,7 +1654,6 @@ declare class Account {
|
|
|
1932
1654
|
message: string;
|
|
1933
1655
|
data?: undefined;
|
|
1934
1656
|
}>;
|
|
1935
|
-
getCurrentEpoch(): Promise<void>;
|
|
1936
1657
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
1937
1658
|
code: number;
|
|
1938
1659
|
data: any;
|
|
@@ -1977,11 +1698,11 @@ declare class Seamless {
|
|
|
1977
1698
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account, api: Api);
|
|
1978
1699
|
onCheckRelayer(account: string, relayer: string, chainId: number): Promise<boolean>;
|
|
1979
1700
|
getUSDPermitParams(deadline: number, chainId: number): Promise<{
|
|
1980
|
-
token: string
|
|
1701
|
+
token: string;
|
|
1981
1702
|
owner: string;
|
|
1982
1703
|
spender: string;
|
|
1983
|
-
value:
|
|
1984
|
-
deadline:
|
|
1704
|
+
value: string;
|
|
1705
|
+
deadline: string;
|
|
1985
1706
|
v: number;
|
|
1986
1707
|
r: string;
|
|
1987
1708
|
s: string;
|
|
@@ -2343,22 +2064,15 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2343
2064
|
}
|
|
2344
2065
|
|
|
2345
2066
|
interface BrokerInterface extends Interface {
|
|
2346
|
-
getFunction(nameOrSignature: "FEE_TYPEHASH" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "
|
|
2347
|
-
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "UserFeeDataUpdated"): EventFragment;
|
|
2067
|
+
getFunction(nameOrSignature: "FEE_TYPEHASH" | "UPGRADE_INTERFACE_VERSION" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "batchSetSpecialFeeTiers" | "batchUpdateFeeTiers" | "cancelOrder" | "cancelOrders" | "claimRebate" | "claimRebates" | "currentFeeDataEpoch" | "domainSeparatorV4" | "eip712Domain" | "getAddOnFeeTier" | "getBaseFeeRate" | "getImplementation" | "getSpecialFeeTier" | "getUserFeeDataDigest" | "getUserFeeRate" | "initialize" | "isActive" | "isTrustedForwarder" | "name" | "onBrokerFee" | "owner" | "pendingOwner" | "placeOrderWithPosition" | "placeOrderWithSalt" | "placeOrdersWithPosition" | "placeOrdersWithSalt" | "proxiableUUID" | "renounceOwnership" | "resetAllUserFeeData" | "setSigner" | "setSpecialFeeTier" | "setUserFeeData" | "setUserSpecialFeeTier" | "supportedAssetClasses" | "transferOwnership" | "trustedForwarder" | "updateBaseFeeRates" | "updateBrokerStatus" | "updateFeeTier" | "updateOrder" | "updatePriceAndAdjustCollateral" | "updateUserFeeData" | "upgradeTo" | "upgradeToAndCall" | "userFeeData" | "userNonces" | "userRebates"): FunctionFragment;
|
|
2068
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "Upgraded" | "UserFeeDataReset" | "UserFeeDataUpdated"): EventFragment;
|
|
2348
2069
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2070
|
+
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2349
2071
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2350
2072
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2351
2073
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2352
2074
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2353
2075
|
encodeFunctionData(functionFragment: "addressManager", values?: undefined): string;
|
|
2354
|
-
encodeFunctionData(functionFragment: "adjustCollateral", values: [
|
|
2355
|
-
{
|
|
2356
|
-
token: AddressLike;
|
|
2357
|
-
amount: BigNumberish;
|
|
2358
|
-
},
|
|
2359
|
-
BytesLike,
|
|
2360
|
-
BigNumberish
|
|
2361
|
-
]): string;
|
|
2362
2076
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2363
2077
|
{
|
|
2364
2078
|
assetClass: BigNumberish;
|
|
@@ -2383,10 +2097,24 @@ interface BrokerInterface extends Interface {
|
|
|
2383
2097
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2384
2098
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2385
2099
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2100
|
+
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2101
|
+
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2386
2102
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2387
2103
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2388
2104
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2105
|
+
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2389
2106
|
encodeFunctionData(functionFragment: "getSpecialFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2107
|
+
encodeFunctionData(functionFragment: "getUserFeeDataDigest", values: [
|
|
2108
|
+
AddressLike,
|
|
2109
|
+
BigNumberish,
|
|
2110
|
+
BigNumberish,
|
|
2111
|
+
{
|
|
2112
|
+
tier: BigNumberish;
|
|
2113
|
+
referrer: AddressLike;
|
|
2114
|
+
totalReferralRebatePct: BigNumberish;
|
|
2115
|
+
referrerRebatePct: BigNumberish;
|
|
2116
|
+
}
|
|
2117
|
+
]): string;
|
|
2390
2118
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2391
2119
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2392
2120
|
AddressLike,
|
|
@@ -2509,7 +2237,9 @@ interface BrokerInterface extends Interface {
|
|
|
2509
2237
|
slPrice: BigNumberish;
|
|
2510
2238
|
}[]
|
|
2511
2239
|
]): string;
|
|
2240
|
+
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2512
2241
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2242
|
+
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2513
2243
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2514
2244
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2515
2245
|
{
|
|
@@ -2558,15 +2288,6 @@ interface BrokerInterface extends Interface {
|
|
|
2558
2288
|
makerFeeRate: BigNumberish;
|
|
2559
2289
|
}
|
|
2560
2290
|
]): string;
|
|
2561
|
-
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2562
|
-
BigNumberish,
|
|
2563
|
-
BigNumberish,
|
|
2564
|
-
BigNumberish[],
|
|
2565
|
-
{
|
|
2566
|
-
takerFeeRate: BigNumberish;
|
|
2567
|
-
makerFeeRate: BigNumberish;
|
|
2568
|
-
}[]
|
|
2569
|
-
]): string;
|
|
2570
2291
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2571
2292
|
{
|
|
2572
2293
|
token: AddressLike;
|
|
@@ -2599,26 +2320,41 @@ interface BrokerInterface extends Interface {
|
|
|
2599
2320
|
BytesLike,
|
|
2600
2321
|
BigNumberish
|
|
2601
2322
|
]): string;
|
|
2602
|
-
encodeFunctionData(functionFragment: "
|
|
2323
|
+
encodeFunctionData(functionFragment: "updateUserFeeData", values: [
|
|
2324
|
+
AddressLike,
|
|
2325
|
+
{
|
|
2326
|
+
tier: BigNumberish;
|
|
2327
|
+
referrer: AddressLike;
|
|
2328
|
+
totalReferralRebatePct: BigNumberish;
|
|
2329
|
+
referrerRebatePct: BigNumberish;
|
|
2330
|
+
}
|
|
2331
|
+
]): string;
|
|
2332
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [AddressLike, BytesLike]): string;
|
|
2333
|
+
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
2334
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [BigNumberish, AddressLike]): string;
|
|
2603
2335
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2604
2336
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2605
2337
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2338
|
+
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2606
2339
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2607
2340
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2608
2341
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2609
2342
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2610
2343
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2611
|
-
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2612
2344
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2613
2345
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2614
2346
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2615
2347
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2616
2348
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2617
2349
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2350
|
+
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2351
|
+
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2618
2352
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2619
2353
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2620
2354
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2355
|
+
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2621
2356
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2357
|
+
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2622
2358
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2623
2359
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2624
2360
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2631,7 +2367,9 @@ interface BrokerInterface extends Interface {
|
|
|
2631
2367
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2632
2368
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2633
2369
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2370
|
+
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2634
2371
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2372
|
+
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2635
2373
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2636
2374
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2637
2375
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2642,9 +2380,11 @@ interface BrokerInterface extends Interface {
|
|
|
2642
2380
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2643
2381
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2644
2382
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2645
|
-
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2646
2383
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2647
2384
|
decodeFunctionResult(functionFragment: "updatePriceAndAdjustCollateral", data: BytesLike): Result;
|
|
2385
|
+
decodeFunctionResult(functionFragment: "updateUserFeeData", data: BytesLike): Result;
|
|
2386
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
2387
|
+
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
|
|
2648
2388
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2649
2389
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2650
2390
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2735,11 +2475,40 @@ declare namespace SignerUpdatedEvent {
|
|
|
2735
2475
|
type Log = TypedEventLog<Event>;
|
|
2736
2476
|
type LogDescription = TypedLogDescription<Event>;
|
|
2737
2477
|
}
|
|
2478
|
+
declare namespace UpgradedEvent {
|
|
2479
|
+
type InputTuple = [implementation: AddressLike];
|
|
2480
|
+
type OutputTuple = [implementation: string];
|
|
2481
|
+
interface OutputObject {
|
|
2482
|
+
implementation: string;
|
|
2483
|
+
}
|
|
2484
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2485
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2486
|
+
type Log = TypedEventLog<Event>;
|
|
2487
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2488
|
+
}
|
|
2489
|
+
declare namespace UserFeeDataResetEvent {
|
|
2490
|
+
type InputTuple = [
|
|
2491
|
+
broker: AddressLike,
|
|
2492
|
+
signer: AddressLike,
|
|
2493
|
+
epoch: BigNumberish
|
|
2494
|
+
];
|
|
2495
|
+
type OutputTuple = [broker: string, signer: string, epoch: bigint];
|
|
2496
|
+
interface OutputObject {
|
|
2497
|
+
broker: string;
|
|
2498
|
+
signer: string;
|
|
2499
|
+
epoch: bigint;
|
|
2500
|
+
}
|
|
2501
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2502
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2503
|
+
type Log = TypedEventLog<Event>;
|
|
2504
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
2505
|
+
}
|
|
2738
2506
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2739
2507
|
type InputTuple = [
|
|
2740
2508
|
broker: AddressLike,
|
|
2741
2509
|
signer: AddressLike,
|
|
2742
2510
|
user: AddressLike,
|
|
2511
|
+
epoch: BigNumberish,
|
|
2743
2512
|
tier: BigNumberish,
|
|
2744
2513
|
referrer: AddressLike,
|
|
2745
2514
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2749,6 +2518,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2749
2518
|
broker: string,
|
|
2750
2519
|
signer: string,
|
|
2751
2520
|
user: string,
|
|
2521
|
+
epoch: bigint,
|
|
2752
2522
|
tier: bigint,
|
|
2753
2523
|
referrer: string,
|
|
2754
2524
|
totalReferralRebatePct: bigint,
|
|
@@ -2758,6 +2528,7 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2758
2528
|
broker: string;
|
|
2759
2529
|
signer: string;
|
|
2760
2530
|
user: string;
|
|
2531
|
+
epoch: bigint;
|
|
2761
2532
|
tier: bigint;
|
|
2762
2533
|
referrer: string;
|
|
2763
2534
|
totalReferralRebatePct: bigint;
|
|
@@ -2782,6 +2553,7 @@ interface Broker extends BaseContract {
|
|
|
2782
2553
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2783
2554
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2784
2555
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2556
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2785
2557
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2786
2558
|
trustedForwarder_: AddressLike
|
|
2787
2559
|
], [
|
|
@@ -2801,16 +2573,6 @@ interface Broker extends BaseContract {
|
|
|
2801
2573
|
bigint[]
|
|
2802
2574
|
], "view">;
|
|
2803
2575
|
addressManager: TypedContractMethod<[], [string], "view">;
|
|
2804
|
-
adjustCollateral: TypedContractMethod<[
|
|
2805
|
-
depositParams: {
|
|
2806
|
-
token: AddressLike;
|
|
2807
|
-
amount: BigNumberish;
|
|
2808
|
-
},
|
|
2809
|
-
positionId: BytesLike,
|
|
2810
|
-
adjustAmount: BigNumberish
|
|
2811
|
-
], [
|
|
2812
|
-
void
|
|
2813
|
-
], "nonpayable">;
|
|
2814
2576
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2815
2577
|
params: {
|
|
2816
2578
|
assetClass: BigNumberish;
|
|
@@ -2851,6 +2613,8 @@ interface Broker extends BaseContract {
|
|
|
2851
2613
|
], [
|
|
2852
2614
|
void
|
|
2853
2615
|
], "nonpayable">;
|
|
2616
|
+
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2617
|
+
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2854
2618
|
eip712Domain: TypedContractMethod<[
|
|
2855
2619
|
], [
|
|
2856
2620
|
[
|
|
@@ -2889,6 +2653,7 @@ interface Broker extends BaseContract {
|
|
|
2889
2653
|
makerFeeRate: bigint;
|
|
2890
2654
|
}
|
|
2891
2655
|
], "view">;
|
|
2656
|
+
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2892
2657
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2893
2658
|
assetClass: BigNumberish,
|
|
2894
2659
|
riskTier: BigNumberish,
|
|
@@ -2899,6 +2664,19 @@ interface Broker extends BaseContract {
|
|
|
2899
2664
|
takerFeeRate: bigint;
|
|
2900
2665
|
}
|
|
2901
2666
|
], "view">;
|
|
2667
|
+
getUserFeeDataDigest: TypedContractMethod<[
|
|
2668
|
+
user: AddressLike,
|
|
2669
|
+
nonce: BigNumberish,
|
|
2670
|
+
deadline: BigNumberish,
|
|
2671
|
+
feeData: {
|
|
2672
|
+
tier: BigNumberish;
|
|
2673
|
+
referrer: AddressLike;
|
|
2674
|
+
totalReferralRebatePct: BigNumberish;
|
|
2675
|
+
referrerRebatePct: BigNumberish;
|
|
2676
|
+
}
|
|
2677
|
+
], [
|
|
2678
|
+
string
|
|
2679
|
+
], "view">;
|
|
2902
2680
|
getUserFeeRate: TypedContractMethod<[
|
|
2903
2681
|
user: AddressLike,
|
|
2904
2682
|
assetClass: BigNumberish,
|
|
@@ -3066,7 +2844,9 @@ interface Broker extends BaseContract {
|
|
|
3066
2844
|
], [
|
|
3067
2845
|
void
|
|
3068
2846
|
], "payable">;
|
|
2847
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3069
2848
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
2849
|
+
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
3070
2850
|
setSigner: TypedContractMethod<[
|
|
3071
2851
|
signer: AddressLike,
|
|
3072
2852
|
isSigner: boolean
|
|
@@ -3141,17 +2921,6 @@ interface Broker extends BaseContract {
|
|
|
3141
2921
|
], [
|
|
3142
2922
|
void
|
|
3143
2923
|
], "nonpayable">;
|
|
3144
|
-
updateFeeTiers: TypedContractMethod<[
|
|
3145
|
-
assetClass: BigNumberish,
|
|
3146
|
-
riskTier: BigNumberish,
|
|
3147
|
-
feeTiers: BigNumberish[],
|
|
3148
|
-
feeRates: {
|
|
3149
|
-
takerFeeRate: BigNumberish;
|
|
3150
|
-
makerFeeRate: BigNumberish;
|
|
3151
|
-
}[]
|
|
3152
|
-
], [
|
|
3153
|
-
void
|
|
3154
|
-
], "nonpayable">;
|
|
3155
2924
|
updateOrder: TypedContractMethod<[
|
|
3156
2925
|
depositParams: {
|
|
3157
2926
|
token: AddressLike;
|
|
@@ -3188,7 +2957,31 @@ interface Broker extends BaseContract {
|
|
|
3188
2957
|
], [
|
|
3189
2958
|
void
|
|
3190
2959
|
], "payable">;
|
|
2960
|
+
updateUserFeeData: TypedContractMethod<[
|
|
2961
|
+
user: AddressLike,
|
|
2962
|
+
feeData: {
|
|
2963
|
+
tier: BigNumberish;
|
|
2964
|
+
referrer: AddressLike;
|
|
2965
|
+
totalReferralRebatePct: BigNumberish;
|
|
2966
|
+
referrerRebatePct: BigNumberish;
|
|
2967
|
+
}
|
|
2968
|
+
], [
|
|
2969
|
+
void
|
|
2970
|
+
], "nonpayable">;
|
|
2971
|
+
upgradeTo: TypedContractMethod<[
|
|
2972
|
+
newImplementation: AddressLike,
|
|
2973
|
+
data: BytesLike
|
|
2974
|
+
], [
|
|
2975
|
+
void
|
|
2976
|
+
], "payable">;
|
|
2977
|
+
upgradeToAndCall: TypedContractMethod<[
|
|
2978
|
+
newImplementation: AddressLike,
|
|
2979
|
+
data: BytesLike
|
|
2980
|
+
], [
|
|
2981
|
+
void
|
|
2982
|
+
], "payable">;
|
|
3191
2983
|
userFeeData: TypedContractMethod<[
|
|
2984
|
+
userFeeDataEpoch: BigNumberish,
|
|
3192
2985
|
user: AddressLike
|
|
3193
2986
|
], [
|
|
3194
2987
|
[
|
|
@@ -3212,6 +3005,7 @@ interface Broker extends BaseContract {
|
|
|
3212
3005
|
], "view">;
|
|
3213
3006
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3214
3007
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3008
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3215
3009
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3216
3010
|
trustedForwarder_: AddressLike
|
|
3217
3011
|
], [
|
|
@@ -3231,16 +3025,6 @@ interface Broker extends BaseContract {
|
|
|
3231
3025
|
bigint[]
|
|
3232
3026
|
], "view">;
|
|
3233
3027
|
getFunction(nameOrSignature: "addressManager"): TypedContractMethod<[], [string], "view">;
|
|
3234
|
-
getFunction(nameOrSignature: "adjustCollateral"): TypedContractMethod<[
|
|
3235
|
-
depositParams: {
|
|
3236
|
-
token: AddressLike;
|
|
3237
|
-
amount: BigNumberish;
|
|
3238
|
-
},
|
|
3239
|
-
positionId: BytesLike,
|
|
3240
|
-
adjustAmount: BigNumberish
|
|
3241
|
-
], [
|
|
3242
|
-
void
|
|
3243
|
-
], "nonpayable">;
|
|
3244
3028
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3245
3029
|
params: {
|
|
3246
3030
|
assetClass: BigNumberish;
|
|
@@ -3269,6 +3053,8 @@ interface Broker extends BaseContract {
|
|
|
3269
3053
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3270
3054
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3271
3055
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3056
|
+
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3057
|
+
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3272
3058
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3273
3059
|
], [
|
|
3274
3060
|
[
|
|
@@ -3307,6 +3093,7 @@ interface Broker extends BaseContract {
|
|
|
3307
3093
|
makerFeeRate: bigint;
|
|
3308
3094
|
}
|
|
3309
3095
|
], "view">;
|
|
3096
|
+
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3310
3097
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3311
3098
|
assetClass: BigNumberish,
|
|
3312
3099
|
riskTier: BigNumberish,
|
|
@@ -3317,6 +3104,19 @@ interface Broker extends BaseContract {
|
|
|
3317
3104
|
takerFeeRate: bigint;
|
|
3318
3105
|
}
|
|
3319
3106
|
], "view">;
|
|
3107
|
+
getFunction(nameOrSignature: "getUserFeeDataDigest"): TypedContractMethod<[
|
|
3108
|
+
user: AddressLike,
|
|
3109
|
+
nonce: BigNumberish,
|
|
3110
|
+
deadline: BigNumberish,
|
|
3111
|
+
feeData: {
|
|
3112
|
+
tier: BigNumberish;
|
|
3113
|
+
referrer: AddressLike;
|
|
3114
|
+
totalReferralRebatePct: BigNumberish;
|
|
3115
|
+
referrerRebatePct: BigNumberish;
|
|
3116
|
+
}
|
|
3117
|
+
], [
|
|
3118
|
+
string
|
|
3119
|
+
], "view">;
|
|
3320
3120
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3321
3121
|
user: AddressLike,
|
|
3322
3122
|
assetClass: BigNumberish,
|
|
@@ -3480,7 +3280,9 @@ interface Broker extends BaseContract {
|
|
|
3480
3280
|
], [
|
|
3481
3281
|
void
|
|
3482
3282
|
], "payable">;
|
|
3283
|
+
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3483
3284
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3285
|
+
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3484
3286
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3485
3287
|
signer: AddressLike,
|
|
3486
3288
|
isSigner: boolean
|
|
@@ -3547,17 +3349,6 @@ interface Broker extends BaseContract {
|
|
|
3547
3349
|
], [
|
|
3548
3350
|
void
|
|
3549
3351
|
], "nonpayable">;
|
|
3550
|
-
getFunction(nameOrSignature: "updateFeeTiers"): TypedContractMethod<[
|
|
3551
|
-
assetClass: BigNumberish,
|
|
3552
|
-
riskTier: BigNumberish,
|
|
3553
|
-
feeTiers: BigNumberish[],
|
|
3554
|
-
feeRates: {
|
|
3555
|
-
takerFeeRate: BigNumberish;
|
|
3556
|
-
makerFeeRate: BigNumberish;
|
|
3557
|
-
}[]
|
|
3558
|
-
], [
|
|
3559
|
-
void
|
|
3560
|
-
], "nonpayable">;
|
|
3561
3352
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3562
3353
|
depositParams: {
|
|
3563
3354
|
token: AddressLike;
|
|
@@ -3594,7 +3385,31 @@ interface Broker extends BaseContract {
|
|
|
3594
3385
|
], [
|
|
3595
3386
|
void
|
|
3596
3387
|
], "payable">;
|
|
3388
|
+
getFunction(nameOrSignature: "updateUserFeeData"): TypedContractMethod<[
|
|
3389
|
+
user: AddressLike,
|
|
3390
|
+
feeData: {
|
|
3391
|
+
tier: BigNumberish;
|
|
3392
|
+
referrer: AddressLike;
|
|
3393
|
+
totalReferralRebatePct: BigNumberish;
|
|
3394
|
+
referrerRebatePct: BigNumberish;
|
|
3395
|
+
}
|
|
3396
|
+
], [
|
|
3397
|
+
void
|
|
3398
|
+
], "nonpayable">;
|
|
3399
|
+
getFunction(nameOrSignature: "upgradeTo"): TypedContractMethod<[
|
|
3400
|
+
newImplementation: AddressLike,
|
|
3401
|
+
data: BytesLike
|
|
3402
|
+
], [
|
|
3403
|
+
void
|
|
3404
|
+
], "payable">;
|
|
3405
|
+
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3406
|
+
newImplementation: AddressLike,
|
|
3407
|
+
data: BytesLike
|
|
3408
|
+
], [
|
|
3409
|
+
void
|
|
3410
|
+
], "payable">;
|
|
3597
3411
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3412
|
+
userFeeDataEpoch: BigNumberish,
|
|
3598
3413
|
user: AddressLike
|
|
3599
3414
|
], [
|
|
3600
3415
|
[
|
|
@@ -3623,6 +3438,8 @@ interface Broker extends BaseContract {
|
|
|
3623
3438
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3624
3439
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3625
3440
|
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3441
|
+
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3442
|
+
getEvent(key: "UserFeeDataReset"): TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3626
3443
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3627
3444
|
filters: {
|
|
3628
3445
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3639,7 +3456,11 @@ interface Broker extends BaseContract {
|
|
|
3639
3456
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3640
3457
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3641
3458
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3642
|
-
"
|
|
3459
|
+
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3460
|
+
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3461
|
+
"UserFeeDataReset(address,address,uint256)": TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3462
|
+
UserFeeDataReset: TypedContractEvent<UserFeeDataResetEvent.InputTuple, UserFeeDataResetEvent.OutputTuple, UserFeeDataResetEvent.OutputObject>;
|
|
3463
|
+
"UserFeeDataUpdated(address,address,address,uint256,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3643
3464
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3644
3465
|
};
|
|
3645
3466
|
}
|
|
@@ -3655,80 +3476,6 @@ declare class BaseMyxClient {
|
|
|
3655
3476
|
protected get config(): MyxClientConfig;
|
|
3656
3477
|
}
|
|
3657
3478
|
|
|
3658
|
-
interface AppealVoteParams {
|
|
3659
|
-
caseId: number;
|
|
3660
|
-
validator: Address$2;
|
|
3661
|
-
isFor: boolean;
|
|
3662
|
-
deadline: number;
|
|
3663
|
-
v: number;
|
|
3664
|
-
r: string;
|
|
3665
|
-
s: string;
|
|
3666
|
-
}
|
|
3667
|
-
|
|
3668
|
-
declare class Appeal extends BaseMyxClient {
|
|
3669
|
-
constructor(client: MyxClient);
|
|
3670
|
-
private getDisputeCourtContract;
|
|
3671
|
-
private getReimbursementContract;
|
|
3672
|
-
/**
|
|
3673
|
-
* submit appeal
|
|
3674
|
-
* @param poolId - the pool id
|
|
3675
|
-
* @param poolToken - the pool token
|
|
3676
|
-
* @returns the transaction receipt
|
|
3677
|
-
*/
|
|
3678
|
-
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3679
|
-
/**
|
|
3680
|
-
* vote for appeal
|
|
3681
|
-
* @param caseId - the case id
|
|
3682
|
-
* @param isFor - true if for the appeal, false if against the appeal
|
|
3683
|
-
* @returns the transaction receipt
|
|
3684
|
-
*/
|
|
3685
|
-
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3686
|
-
/**
|
|
3687
|
-
* claim appeal margin
|
|
3688
|
-
* @param caseId - the case id
|
|
3689
|
-
* @returns the transaction receipt
|
|
3690
|
-
*/
|
|
3691
|
-
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3692
|
-
/**
|
|
3693
|
-
* claim reimbursement
|
|
3694
|
-
* @param caseId - the case id
|
|
3695
|
-
* @param baseAmount - the base amount
|
|
3696
|
-
* @param quoteAmount - the quote amount
|
|
3697
|
-
* @param merkleProof - the merkle proof
|
|
3698
|
-
* @returns the transaction receipt
|
|
3699
|
-
*/
|
|
3700
|
-
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3701
|
-
/**
|
|
3702
|
-
* get dispute configuration
|
|
3703
|
-
*/
|
|
3704
|
-
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3705
|
-
appealToken: string;
|
|
3706
|
-
disputeBondUsd: bigint;
|
|
3707
|
-
appealBondUsd: bigint;
|
|
3708
|
-
disputeThresholdUsd: bigint;
|
|
3709
|
-
caseDuration: bigint;
|
|
3710
|
-
voteDuration: bigint;
|
|
3711
|
-
resolveDuration: bigint;
|
|
3712
|
-
voteCountRate: bigint;
|
|
3713
|
-
effectiveVoteRate: bigint;
|
|
3714
|
-
}>;
|
|
3715
|
-
/**
|
|
3716
|
-
* http api
|
|
3717
|
-
*/
|
|
3718
|
-
getAppealList(params: GetAppealListParams): Promise<ApiResponse<AppealListItem[]>>;
|
|
3719
|
-
getAppealDetail(params: GetAppealDetailParams): Promise<ApiResponse<AppealDetail>>;
|
|
3720
|
-
uploadAppealEvidence(params: AppealUploadEvidenceParams): Promise<ApiResponse<null>>;
|
|
3721
|
-
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
3722
|
-
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
3723
|
-
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
3724
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
3725
|
-
getAppealNodeVoteDetail(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
3726
|
-
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3727
|
-
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
3728
|
-
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
3729
|
-
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
3730
|
-
}
|
|
3731
|
-
|
|
3732
3479
|
declare class Referrals extends BaseMyxClient {
|
|
3733
3480
|
constructor(client: MyxClient);
|
|
3734
3481
|
claimRebate(tokenAddress: Address$2): Promise<ethers.ContractTransactionReceipt | null>;
|
|
@@ -3739,7 +3486,7 @@ declare class MyxClient {
|
|
|
3739
3486
|
* private properties
|
|
3740
3487
|
*/
|
|
3741
3488
|
private configManager;
|
|
3742
|
-
logger
|
|
3489
|
+
private logger;
|
|
3743
3490
|
/**
|
|
3744
3491
|
* public properties
|
|
3745
3492
|
*/
|
|
@@ -3751,7 +3498,6 @@ declare class MyxClient {
|
|
|
3751
3498
|
account: Account;
|
|
3752
3499
|
seamless: Seamless;
|
|
3753
3500
|
api: Api;
|
|
3754
|
-
appeal: Appeal;
|
|
3755
3501
|
referrals: Referrals;
|
|
3756
3502
|
/**
|
|
3757
3503
|
* 获取配置管理器(用于访问 accessToken 相关方法)
|
|
@@ -3773,4 +3519,4 @@ declare class MyxClient {
|
|
|
3773
3519
|
getAccessToken(): Promise<string | null>;
|
|
3774
3520
|
}
|
|
3775
3521
|
|
|
3776
|
-
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse,
|
|
3522
|
+
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type PoolSymbolAllResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getTickerData, getTokenInfo, index as market, index$3 as pool, index$1 as quote };
|