@myx-trade/sdk 0.1.249 → 0.1.250-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/dist/index.d.mts +451 -188
- package/dist/index.d.ts +451 -188
- package/dist/index.js +2843 -322
- package/dist/index.mjs +2833 -322
- package/package.json +18 -21
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
|
|
7
8
|
type Address$1 = `0x${string}` | typeof ZeroAddress;
|
|
8
9
|
declare enum ChainId {
|
|
@@ -30,6 +31,8 @@ interface ContractAddress {
|
|
|
30
31
|
readonly DATA_PROVIDER: Address$1;
|
|
31
32
|
readonly ORACLE_RESERVE: Address$1;
|
|
32
33
|
readonly FORWARDER: Address$1;
|
|
34
|
+
readonly REIMBURSEMENT: Address$1;
|
|
35
|
+
readonly DISPUTE_COURT: Address$1;
|
|
33
36
|
readonly TRADING_ROUTER: Address$1;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -758,6 +761,8 @@ interface PoolSymbolAllResponse {
|
|
|
758
761
|
baseSymbol: string;
|
|
759
762
|
quoteSymbol: string;
|
|
760
763
|
baseTokenIcon: string;
|
|
764
|
+
baseToken: string;
|
|
765
|
+
quoteToken: string;
|
|
761
766
|
}
|
|
762
767
|
|
|
763
768
|
declare const getBaseUrlByEnv: () => "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
@@ -958,17 +963,13 @@ declare namespace index$1 {
|
|
|
958
963
|
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 };
|
|
959
964
|
}
|
|
960
965
|
|
|
961
|
-
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint
|
|
966
|
+
declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
|
|
962
967
|
quoteToken: string;
|
|
963
968
|
baseReserveRatio: bigint;
|
|
964
969
|
quoteReserveRatio: bigint;
|
|
965
970
|
oracleFeeUsd: bigint;
|
|
966
971
|
oracleRefundFeeUsd: bigint;
|
|
967
972
|
poolPrimeThreshold: bigint;
|
|
968
|
-
executionFee: bigint;
|
|
969
|
-
maxExecutionFee: bigint;
|
|
970
|
-
forwardFee: bigint;
|
|
971
|
-
maxForwardFee: bigint;
|
|
972
973
|
}) | undefined>;
|
|
973
974
|
|
|
974
975
|
declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
|
|
@@ -1364,7 +1365,7 @@ declare class Utils {
|
|
|
1364
1365
|
constructor(configManager: ConfigManager, logger: Logger);
|
|
1365
1366
|
getOrderIdFromTransaction(receipt: any): string | null;
|
|
1366
1367
|
private getApproveQuoteAmount;
|
|
1367
|
-
needsApproval(
|
|
1368
|
+
needsApproval(account: string, chainId: number, tokenAddress: string, requiredAmount: string, spenderAddress?: string): Promise<boolean>;
|
|
1368
1369
|
approveAuthorization({ chainId, quoteAddress, amount, spenderAddress, signer, }: {
|
|
1369
1370
|
chainId: number;
|
|
1370
1371
|
quoteAddress: string;
|
|
@@ -1397,13 +1398,16 @@ declare class Utils {
|
|
|
1397
1398
|
publishTime: number;
|
|
1398
1399
|
oracleType: OracleType;
|
|
1399
1400
|
vaa: string;
|
|
1400
|
-
} | {
|
|
1401
|
-
price: string;
|
|
1402
|
-
vaa: string;
|
|
1403
|
-
publishTime: number;
|
|
1404
|
-
poolId: string;
|
|
1405
|
-
value: number;
|
|
1406
1401
|
}>;
|
|
1402
|
+
buildUpdatePriceParams(poolId: string, chainId: number): Promise<{
|
|
1403
|
+
poolId: string;
|
|
1404
|
+
referencePrice: bigint;
|
|
1405
|
+
oracleUpdateData: string;
|
|
1406
|
+
publishTime: number;
|
|
1407
|
+
oracleType: OracleType;
|
|
1408
|
+
value: bigint;
|
|
1409
|
+
price: string;
|
|
1410
|
+
}[]>;
|
|
1407
1411
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1408
1412
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1409
1413
|
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
@@ -1482,15 +1486,277 @@ declare class Utils {
|
|
|
1482
1486
|
data?: undefined;
|
|
1483
1487
|
}>;
|
|
1484
1488
|
formatErrorMessage(error: any): any;
|
|
1485
|
-
getGasPriceByRatio(
|
|
1486
|
-
getGasLimitByRatio(
|
|
1489
|
+
getGasPriceByRatio(): Promise<bigint>;
|
|
1490
|
+
getGasLimitByRatio(gasLimit: bigint): Promise<bigint>;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare enum AppealType {
|
|
1494
|
+
UnderReview = 1,
|
|
1495
|
+
InitialVote = 2,
|
|
1496
|
+
PublicNotice = 3,
|
|
1497
|
+
UnderReconsideration = 4,
|
|
1498
|
+
Won = 5,
|
|
1499
|
+
Failed = 6,
|
|
1500
|
+
PlatformRuling = 7,
|
|
1501
|
+
PlatformRevoked = 8
|
|
1502
|
+
}
|
|
1503
|
+
declare enum AppealReconsiderationType {
|
|
1504
|
+
InitialVoting = 1,
|
|
1505
|
+
PublicNotice = 2,
|
|
1506
|
+
UnderReconsideration = 3,
|
|
1507
|
+
Won = 4,
|
|
1508
|
+
Failed = 5,
|
|
1509
|
+
PlatformRuling = 6,
|
|
1510
|
+
PlatformRevoked = 7,
|
|
1511
|
+
ReconsiderationVoting = 8
|
|
1512
|
+
}
|
|
1513
|
+
declare enum AppealStage {
|
|
1514
|
+
UnderReview = 1,
|
|
1515
|
+
PublicNotice = 2,
|
|
1516
|
+
UnderReconsideration = 3,
|
|
1517
|
+
Completed = 4
|
|
1518
|
+
}
|
|
1519
|
+
interface GetAppealListParams {
|
|
1520
|
+
chainId?: number;
|
|
1521
|
+
poolId?: string;
|
|
1522
|
+
type?: AppealType;
|
|
1523
|
+
stage?: AppealStage;
|
|
1524
|
+
before?: number;
|
|
1525
|
+
after?: number;
|
|
1526
|
+
limit?: number;
|
|
1527
|
+
}
|
|
1528
|
+
interface AppealListItem {
|
|
1529
|
+
id: number;
|
|
1530
|
+
chainId: number;
|
|
1531
|
+
caseId: number;
|
|
1532
|
+
poolId: string;
|
|
1533
|
+
complainant: string;
|
|
1534
|
+
poolToken: string;
|
|
1535
|
+
disputeBond: string;
|
|
1536
|
+
type: AppealType;
|
|
1537
|
+
stage: AppealStage;
|
|
1538
|
+
totalVoteCount: number;
|
|
1539
|
+
votedCount: number;
|
|
1540
|
+
appealCount: number;
|
|
1541
|
+
appealDeadline: number;
|
|
1542
|
+
compClaimDeadline: number;
|
|
1543
|
+
updateTime: number;
|
|
1544
|
+
}
|
|
1545
|
+
interface GetAppealDetailParams {
|
|
1546
|
+
caseId: number;
|
|
1547
|
+
}
|
|
1548
|
+
declare enum NodeTypeEnum {
|
|
1549
|
+
ElectionNode = 0,
|
|
1550
|
+
OfficialNode = 1
|
|
1551
|
+
}
|
|
1552
|
+
declare enum VoteTypeEnum {
|
|
1553
|
+
Reject = 0,
|
|
1554
|
+
Support = 1
|
|
1555
|
+
}
|
|
1556
|
+
interface AppealVoteItem {
|
|
1557
|
+
time: number;
|
|
1558
|
+
node: string;
|
|
1559
|
+
type: NodeTypeEnum;
|
|
1560
|
+
option: VoteTypeEnum;
|
|
1561
|
+
}
|
|
1562
|
+
interface AppealReconsiderationItem {
|
|
1563
|
+
respondent: string;
|
|
1564
|
+
type: AppealReconsiderationType;
|
|
1565
|
+
stage: AppealStage;
|
|
1566
|
+
voteCount: number;
|
|
1567
|
+
totalVoteCount: number;
|
|
1568
|
+
}
|
|
1569
|
+
interface AppealDetail {
|
|
1570
|
+
caseId: number;
|
|
1571
|
+
chainId: number;
|
|
1572
|
+
poolId: string;
|
|
1573
|
+
complainant: string;
|
|
1574
|
+
poolToken: string;
|
|
1575
|
+
disputeBond: string;
|
|
1576
|
+
type: AppealType;
|
|
1577
|
+
stage: AppealStage;
|
|
1578
|
+
totalVoteCount: number;
|
|
1579
|
+
votedCount: number;
|
|
1580
|
+
appealCount: number;
|
|
1581
|
+
appealDeadline: number;
|
|
1582
|
+
voteDeadline: number;
|
|
1583
|
+
epochStartTime: number;
|
|
1584
|
+
epochEndTime: number;
|
|
1585
|
+
publicNoticeTime: number;
|
|
1586
|
+
respondents: string[];
|
|
1587
|
+
compClaimDeadline: number;
|
|
1588
|
+
votes: AppealVoteItem[];
|
|
1589
|
+
appeals: AppealReconsiderationItem[];
|
|
1590
|
+
disputeTime: number;
|
|
1591
|
+
txHash: string;
|
|
1592
|
+
disputeBondState: AppealClaimStatusEnum;
|
|
1593
|
+
}
|
|
1594
|
+
interface AppealUploadEvidenceParams {
|
|
1595
|
+
caseId: number;
|
|
1596
|
+
poolId: string;
|
|
1597
|
+
evidenceUrl: string;
|
|
1598
|
+
}
|
|
1599
|
+
interface GetAppealReconsiderationListParams {
|
|
1600
|
+
chainId?: number;
|
|
1601
|
+
poolId?: string;
|
|
1602
|
+
type?: AppealReconsiderationType;
|
|
1603
|
+
stage?: AppealStage;
|
|
1604
|
+
before?: number;
|
|
1605
|
+
after?: number;
|
|
1606
|
+
limit?: number;
|
|
1607
|
+
}
|
|
1608
|
+
interface AppealReconsiderationListItem {
|
|
1609
|
+
id: number;
|
|
1610
|
+
chainId: number;
|
|
1611
|
+
caseId: number;
|
|
1612
|
+
poolId: string;
|
|
1613
|
+
respondent: string;
|
|
1614
|
+
type: AppealReconsiderationType;
|
|
1615
|
+
stage: AppealStage;
|
|
1616
|
+
voteCount: number;
|
|
1617
|
+
totalVoteCount: number;
|
|
1618
|
+
appealToken: string;
|
|
1619
|
+
appealBond: string;
|
|
1620
|
+
appealDeadline: number;
|
|
1621
|
+
publicNoticeEndTime: number;
|
|
1622
|
+
updateTime: number;
|
|
1623
|
+
}
|
|
1624
|
+
interface GetAppealReconsiderationDetailParams {
|
|
1625
|
+
caseId: number;
|
|
1626
|
+
appealCaseId?: number;
|
|
1627
|
+
}
|
|
1628
|
+
interface AppealReconsiderationDetail {
|
|
1629
|
+
id: number;
|
|
1630
|
+
chainId: number;
|
|
1631
|
+
poolId: string;
|
|
1632
|
+
complainant: string;
|
|
1633
|
+
respondent: string;
|
|
1634
|
+
type: AppealReconsiderationType;
|
|
1635
|
+
stage: AppealStage;
|
|
1636
|
+
disputeTotalVoteCount: number;
|
|
1637
|
+
disputeVotedCount: number;
|
|
1638
|
+
disputeTxHash: string;
|
|
1639
|
+
disputeVoteDeadline: number;
|
|
1640
|
+
disputeStartTime: number;
|
|
1641
|
+
disputeVotes: AppealVoteItem[];
|
|
1642
|
+
publicNoticeStartTime: number;
|
|
1643
|
+
publicNoticeEndTime: number;
|
|
1644
|
+
appealDeadline: number;
|
|
1645
|
+
respondents: string[];
|
|
1646
|
+
appealToken: string;
|
|
1647
|
+
appealBond: string;
|
|
1648
|
+
appealVotes: AppealVoteItem[];
|
|
1649
|
+
appealTotalVoteCount: number;
|
|
1650
|
+
appealVotedCount: number;
|
|
1651
|
+
}
|
|
1652
|
+
interface AppealReimbursementParams {
|
|
1653
|
+
before?: number;
|
|
1654
|
+
after?: number;
|
|
1655
|
+
limit?: number;
|
|
1656
|
+
}
|
|
1657
|
+
declare enum AppealClaimStatusEnum {
|
|
1658
|
+
UnClaimed = 0,
|
|
1659
|
+
Claimed = 1
|
|
1660
|
+
}
|
|
1661
|
+
interface AppealReimbursementItem {
|
|
1662
|
+
id: number;
|
|
1663
|
+
caseId: number;
|
|
1664
|
+
chainId: number;
|
|
1665
|
+
poolId: string;
|
|
1666
|
+
baseAmount: string;
|
|
1667
|
+
quoteAmount: string;
|
|
1668
|
+
claimTime: number;
|
|
1669
|
+
expireTime: number;
|
|
1670
|
+
createTime: number;
|
|
1671
|
+
claimStatus: AppealClaimStatusEnum;
|
|
1672
|
+
}
|
|
1673
|
+
interface GetAppealNodeVoteListParams {
|
|
1674
|
+
before?: number;
|
|
1675
|
+
after?: number;
|
|
1676
|
+
limit?: number;
|
|
1677
|
+
}
|
|
1678
|
+
declare enum AppealNodeVotedStateEnum {
|
|
1679
|
+
NotVoted = 0,
|
|
1680
|
+
Voted = 1
|
|
1681
|
+
}
|
|
1682
|
+
declare enum AppealCaseTypeEnum {
|
|
1683
|
+
Appeal = 1,
|
|
1684
|
+
Reconsideration = 2
|
|
1685
|
+
}
|
|
1686
|
+
declare enum AppealNodeStateEnum {
|
|
1687
|
+
NoVote = 0,
|
|
1688
|
+
Supported = 1,
|
|
1689
|
+
Rejected = 2
|
|
1487
1690
|
}
|
|
1691
|
+
interface AppealNodeVoteListItem {
|
|
1692
|
+
id: number;
|
|
1693
|
+
chainId: number;
|
|
1694
|
+
caseId: number;
|
|
1695
|
+
poolId: string;
|
|
1696
|
+
appealCaseId: number;
|
|
1697
|
+
type: AppealCaseTypeEnum;
|
|
1698
|
+
deadline: number;
|
|
1699
|
+
votedCount: number;
|
|
1700
|
+
totalVoteCount: number;
|
|
1701
|
+
voteOption: VoteTypeEnum;
|
|
1702
|
+
state: AppealNodeVotedStateEnum;
|
|
1703
|
+
nodeState: AppealNodeStateEnum;
|
|
1704
|
+
}
|
|
1705
|
+
interface AppealNodeVoteItem {
|
|
1706
|
+
disputeEvidenceUrl: string;
|
|
1707
|
+
appealEvidenceUrl: NodeTypeEnum;
|
|
1708
|
+
disputeRemark: VoteTypeEnum;
|
|
1709
|
+
appealRemark: string;
|
|
1710
|
+
chainId: number;
|
|
1711
|
+
poolId: string;
|
|
1712
|
+
respondent: string;
|
|
1713
|
+
respondents: string[];
|
|
1714
|
+
voteDeadline: number;
|
|
1715
|
+
}
|
|
1716
|
+
interface GetIsVoteNodeParams {
|
|
1717
|
+
account: string;
|
|
1718
|
+
}
|
|
1719
|
+
declare enum IsVoteNodeEnum {
|
|
1720
|
+
Yes = 1,
|
|
1721
|
+
No = 0
|
|
1722
|
+
}
|
|
1723
|
+
interface GetAppealVoteNodeDetailParams {
|
|
1724
|
+
caseId: number;
|
|
1725
|
+
appealCaseId?: number;
|
|
1726
|
+
}
|
|
1727
|
+
interface PostVoteSignatureParams {
|
|
1728
|
+
chainId: number;
|
|
1729
|
+
address: Address$2;
|
|
1730
|
+
caseId: number;
|
|
1731
|
+
type: AppealCaseTypeEnum;
|
|
1732
|
+
validator: Address$2;
|
|
1733
|
+
voteOption: VoteTypeEnum;
|
|
1734
|
+
nonce: number;
|
|
1735
|
+
deadline: number;
|
|
1736
|
+
signature: string;
|
|
1737
|
+
}
|
|
1738
|
+
type PostVoteResponse = 1 | 0;
|
|
1488
1739
|
|
|
1489
|
-
|
|
1490
|
-
|
|
1740
|
+
interface RequestOptions extends WretchOptions {
|
|
1741
|
+
auth?: boolean;
|
|
1742
|
+
}
|
|
1743
|
+
declare class Request {
|
|
1744
|
+
protected configManager: ConfigManager;
|
|
1745
|
+
constructor(configManager: ConfigManager);
|
|
1746
|
+
protected getHost(): "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
1747
|
+
private _preSigner;
|
|
1748
|
+
private _preUserAddress;
|
|
1749
|
+
private buildAuthParams;
|
|
1750
|
+
private buildRequestPath;
|
|
1751
|
+
protected get<T = Record<string, any>>(url: string, params: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1752
|
+
protected post<T = Record<string, any>>(url: string, data: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1753
|
+
protected put<T = Record<string, any>>(url: string, data: any, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1754
|
+
protected delete<T = Record<string, any>>(url: string, { auth, ...options }?: RequestOptions): Promise<T>;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
declare class Api extends Request {
|
|
1491
1758
|
private logger;
|
|
1492
1759
|
constructor(configManager: ConfigManager, logger: Logger);
|
|
1493
|
-
getHost(): "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
1494
1760
|
getTradeFlow({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<TradeFlowItem[]>>;
|
|
1495
1761
|
getPoolSymbolAll(): Promise<ApiResponse<PoolSymbolAllResponse[]>>;
|
|
1496
1762
|
fetchForwarderGetApi(params: FetchForwarderGetParams): Promise<FetchForwarderGetResponse>;
|
|
@@ -1498,11 +1764,11 @@ declare class Api {
|
|
|
1498
1764
|
forwarderTxApi(params: ForwarderTxParams, chainId: number): Promise<ApiResponse<any>>;
|
|
1499
1765
|
getOraclePrice(chainId: ChainId, poolIds?: string[]): Promise<Record<string, any>>;
|
|
1500
1766
|
getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
|
|
1501
|
-
getPoolLevelConfig({ poolId, chainId
|
|
1767
|
+
getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
|
|
1502
1768
|
getPositions(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1503
1769
|
getOrders(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1504
1770
|
getPoolOpenOrders(accessToken: string, address: string, chainId: ChainId): Promise<PoolOpenOrdersResponse>;
|
|
1505
|
-
getKlineData({ chainId, poolId, endTime, limit, interval }: GetKlineDataParams): Promise<ApiResponse<KlineDataItemType[]>>;
|
|
1771
|
+
getKlineData({ chainId, poolId, endTime, limit, interval, }: GetKlineDataParams): Promise<ApiResponse<KlineDataItemType[]>>;
|
|
1506
1772
|
getKlineLatestBar(params: Pick<GetKlineDataParams, "chainId" | "poolId" | "interval">): Promise<ApiResponse<KlineDataItemType>>;
|
|
1507
1773
|
getTickerData({ chainId, poolIds }: GetTickerDataParams): Promise<ApiResponse<TickerDataItem[]>>;
|
|
1508
1774
|
getAllTickers(): Promise<ApiResponse<TickerDataItem[]>>;
|
|
@@ -1516,14 +1782,32 @@ declare class Api {
|
|
|
1516
1782
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1517
1783
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1518
1784
|
getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
|
|
1519
|
-
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce }: {
|
|
1785
|
+
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce, }: {
|
|
1520
1786
|
address: string;
|
|
1521
1787
|
accessToken: string;
|
|
1522
1788
|
chainId: number;
|
|
1523
1789
|
deadline: number;
|
|
1524
1790
|
nonce: string;
|
|
1525
1791
|
}): Promise<ApiResponse<any>>;
|
|
1526
|
-
|
|
1792
|
+
/**
|
|
1793
|
+
* appeal module start ------>
|
|
1794
|
+
*/
|
|
1795
|
+
getAppealList(params: GetAppealListParams): Promise<ApiResponse<AppealListItem[]>>;
|
|
1796
|
+
getAppealDetail(params: GetAppealDetailParams): Promise<ApiResponse<AppealDetail>>;
|
|
1797
|
+
uploadAppealEvidence(params: AppealUploadEvidenceParams): Promise<ApiResponse<null>>;
|
|
1798
|
+
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
1799
|
+
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
1800
|
+
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1801
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
1802
|
+
getAppealNodeVoteDetails(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1803
|
+
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1804
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
1805
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
1806
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
1807
|
+
/**
|
|
1808
|
+
* appeal module end ------>
|
|
1809
|
+
*/
|
|
1810
|
+
getCurrentEpoch({ address, accessToken, broker, }: {
|
|
1527
1811
|
address: string;
|
|
1528
1812
|
accessToken: string;
|
|
1529
1813
|
broker: string;
|
|
@@ -2064,15 +2348,22 @@ interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S exte
|
|
|
2064
2348
|
}
|
|
2065
2349
|
|
|
2066
2350
|
interface BrokerInterface extends Interface {
|
|
2067
|
-
getFunction(nameOrSignature: "FEE_TYPEHASH" | "
|
|
2068
|
-
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "
|
|
2351
|
+
getFunction(nameOrSignature: "FEE_TYPEHASH" | "__ERC2771ContextUpgradeable_init" | "acceptOwnership" | "activeFeeTiers" | "activeSpecialFeeTierList" | "addressManager" | "adjustCollateral" | "batchSetSpecialFeeTiers" | "batchUpdateFeeTiers" | "cancelOrder" | "cancelOrders" | "claimRebate" | "claimRebates" | "eip712Domain" | "getAddOnFeeTier" | "getBaseFeeRate" | "getSpecialFeeTier" | "getUserFeeRate" | "initialize" | "isActive" | "isTrustedForwarder" | "name" | "onBrokerFee" | "owner" | "pendingOwner" | "placeOrderWithPosition" | "placeOrderWithSalt" | "placeOrdersWithPosition" | "placeOrdersWithSalt" | "renounceOwnership" | "setSigner" | "setSpecialFeeTier" | "setUserFeeData" | "setUserSpecialFeeTier" | "supportedAssetClasses" | "transferOwnership" | "trustedForwarder" | "updateBaseFeeRates" | "updateBrokerStatus" | "updateFeeTier" | "updateFeeTiers" | "updateOrder" | "updatePriceAndAdjustCollateral" | "userFeeData" | "userNonces" | "userRebates"): FunctionFragment;
|
|
2352
|
+
getEvent(nameOrSignatureOrTopic: "BrokerStatusUpdated" | "EIP712DomainChanged" | "Initialized" | "OwnershipTransferStarted" | "OwnershipTransferred" | "RebateClaimed" | "SignerUpdated" | "UserFeeDataUpdated"): EventFragment;
|
|
2069
2353
|
encodeFunctionData(functionFragment: "FEE_TYPEHASH", values?: undefined): string;
|
|
2070
|
-
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
2071
2354
|
encodeFunctionData(functionFragment: "__ERC2771ContextUpgradeable_init", values: [AddressLike]): string;
|
|
2072
2355
|
encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
|
|
2073
2356
|
encodeFunctionData(functionFragment: "activeFeeTiers", values: [BigNumberish, BigNumberish]): string;
|
|
2074
2357
|
encodeFunctionData(functionFragment: "activeSpecialFeeTierList", values: [BigNumberish, BigNumberish]): string;
|
|
2075
2358
|
encodeFunctionData(functionFragment: "addressManager", values?: undefined): string;
|
|
2359
|
+
encodeFunctionData(functionFragment: "adjustCollateral", values: [
|
|
2360
|
+
{
|
|
2361
|
+
token: AddressLike;
|
|
2362
|
+
amount: BigNumberish;
|
|
2363
|
+
},
|
|
2364
|
+
BytesLike,
|
|
2365
|
+
BigNumberish
|
|
2366
|
+
]): string;
|
|
2076
2367
|
encodeFunctionData(functionFragment: "batchSetSpecialFeeTiers", values: [
|
|
2077
2368
|
{
|
|
2078
2369
|
assetClass: BigNumberish;
|
|
@@ -2097,24 +2388,10 @@ interface BrokerInterface extends Interface {
|
|
|
2097
2388
|
encodeFunctionData(functionFragment: "cancelOrders", values: [BigNumberish[]]): string;
|
|
2098
2389
|
encodeFunctionData(functionFragment: "claimRebate", values: [AddressLike]): string;
|
|
2099
2390
|
encodeFunctionData(functionFragment: "claimRebates", values: [AddressLike[]]): string;
|
|
2100
|
-
encodeFunctionData(functionFragment: "currentFeeDataEpoch", values?: undefined): string;
|
|
2101
|
-
encodeFunctionData(functionFragment: "domainSeparatorV4", values?: undefined): string;
|
|
2102
2391
|
encodeFunctionData(functionFragment: "eip712Domain", values?: undefined): string;
|
|
2103
2392
|
encodeFunctionData(functionFragment: "getAddOnFeeTier", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2104
2393
|
encodeFunctionData(functionFragment: "getBaseFeeRate", values: [BigNumberish]): string;
|
|
2105
|
-
encodeFunctionData(functionFragment: "getImplementation", values?: undefined): string;
|
|
2106
2394
|
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;
|
|
2118
2395
|
encodeFunctionData(functionFragment: "getUserFeeRate", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
2119
2396
|
encodeFunctionData(functionFragment: "initialize", values: [
|
|
2120
2397
|
AddressLike,
|
|
@@ -2237,9 +2514,7 @@ interface BrokerInterface extends Interface {
|
|
|
2237
2514
|
slPrice: BigNumberish;
|
|
2238
2515
|
}[]
|
|
2239
2516
|
]): string;
|
|
2240
|
-
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
2241
2517
|
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
2242
|
-
encodeFunctionData(functionFragment: "resetAllUserFeeData", values?: undefined): string;
|
|
2243
2518
|
encodeFunctionData(functionFragment: "setSigner", values: [AddressLike, boolean]): string;
|
|
2244
2519
|
encodeFunctionData(functionFragment: "setSpecialFeeTier", values: [
|
|
2245
2520
|
{
|
|
@@ -2288,6 +2563,15 @@ interface BrokerInterface extends Interface {
|
|
|
2288
2563
|
makerFeeRate: BigNumberish;
|
|
2289
2564
|
}
|
|
2290
2565
|
]): string;
|
|
2566
|
+
encodeFunctionData(functionFragment: "updateFeeTiers", values: [
|
|
2567
|
+
BigNumberish,
|
|
2568
|
+
BigNumberish,
|
|
2569
|
+
BigNumberish[],
|
|
2570
|
+
{
|
|
2571
|
+
takerFeeRate: BigNumberish;
|
|
2572
|
+
makerFeeRate: BigNumberish;
|
|
2573
|
+
}[]
|
|
2574
|
+
]): string;
|
|
2291
2575
|
encodeFunctionData(functionFragment: "updateOrder", values: [
|
|
2292
2576
|
{
|
|
2293
2577
|
token: AddressLike;
|
|
@@ -2320,41 +2604,26 @@ interface BrokerInterface extends Interface {
|
|
|
2320
2604
|
BytesLike,
|
|
2321
2605
|
BigNumberish
|
|
2322
2606
|
]): string;
|
|
2323
|
-
encodeFunctionData(functionFragment: "
|
|
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;
|
|
2607
|
+
encodeFunctionData(functionFragment: "userFeeData", values: [AddressLike]): string;
|
|
2335
2608
|
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
|
2336
2609
|
encodeFunctionData(functionFragment: "userRebates", values: [AddressLike, AddressLike]): string;
|
|
2337
2610
|
decodeFunctionResult(functionFragment: "FEE_TYPEHASH", data: BytesLike): Result;
|
|
2338
|
-
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
|
|
2339
2611
|
decodeFunctionResult(functionFragment: "__ERC2771ContextUpgradeable_init", data: BytesLike): Result;
|
|
2340
2612
|
decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
|
|
2341
2613
|
decodeFunctionResult(functionFragment: "activeFeeTiers", data: BytesLike): Result;
|
|
2342
2614
|
decodeFunctionResult(functionFragment: "activeSpecialFeeTierList", data: BytesLike): Result;
|
|
2343
2615
|
decodeFunctionResult(functionFragment: "addressManager", data: BytesLike): Result;
|
|
2616
|
+
decodeFunctionResult(functionFragment: "adjustCollateral", data: BytesLike): Result;
|
|
2344
2617
|
decodeFunctionResult(functionFragment: "batchSetSpecialFeeTiers", data: BytesLike): Result;
|
|
2345
2618
|
decodeFunctionResult(functionFragment: "batchUpdateFeeTiers", data: BytesLike): Result;
|
|
2346
2619
|
decodeFunctionResult(functionFragment: "cancelOrder", data: BytesLike): Result;
|
|
2347
2620
|
decodeFunctionResult(functionFragment: "cancelOrders", data: BytesLike): Result;
|
|
2348
2621
|
decodeFunctionResult(functionFragment: "claimRebate", data: BytesLike): Result;
|
|
2349
2622
|
decodeFunctionResult(functionFragment: "claimRebates", data: BytesLike): Result;
|
|
2350
|
-
decodeFunctionResult(functionFragment: "currentFeeDataEpoch", data: BytesLike): Result;
|
|
2351
|
-
decodeFunctionResult(functionFragment: "domainSeparatorV4", data: BytesLike): Result;
|
|
2352
2623
|
decodeFunctionResult(functionFragment: "eip712Domain", data: BytesLike): Result;
|
|
2353
2624
|
decodeFunctionResult(functionFragment: "getAddOnFeeTier", data: BytesLike): Result;
|
|
2354
2625
|
decodeFunctionResult(functionFragment: "getBaseFeeRate", data: BytesLike): Result;
|
|
2355
|
-
decodeFunctionResult(functionFragment: "getImplementation", data: BytesLike): Result;
|
|
2356
2626
|
decodeFunctionResult(functionFragment: "getSpecialFeeTier", data: BytesLike): Result;
|
|
2357
|
-
decodeFunctionResult(functionFragment: "getUserFeeDataDigest", data: BytesLike): Result;
|
|
2358
2627
|
decodeFunctionResult(functionFragment: "getUserFeeRate", data: BytesLike): Result;
|
|
2359
2628
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
2360
2629
|
decodeFunctionResult(functionFragment: "isActive", data: BytesLike): Result;
|
|
@@ -2367,9 +2636,7 @@ interface BrokerInterface extends Interface {
|
|
|
2367
2636
|
decodeFunctionResult(functionFragment: "placeOrderWithSalt", data: BytesLike): Result;
|
|
2368
2637
|
decodeFunctionResult(functionFragment: "placeOrdersWithPosition", data: BytesLike): Result;
|
|
2369
2638
|
decodeFunctionResult(functionFragment: "placeOrdersWithSalt", data: BytesLike): Result;
|
|
2370
|
-
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
2371
2639
|
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
2372
|
-
decodeFunctionResult(functionFragment: "resetAllUserFeeData", data: BytesLike): Result;
|
|
2373
2640
|
decodeFunctionResult(functionFragment: "setSigner", data: BytesLike): Result;
|
|
2374
2641
|
decodeFunctionResult(functionFragment: "setSpecialFeeTier", data: BytesLike): Result;
|
|
2375
2642
|
decodeFunctionResult(functionFragment: "setUserFeeData", data: BytesLike): Result;
|
|
@@ -2380,11 +2647,9 @@ interface BrokerInterface extends Interface {
|
|
|
2380
2647
|
decodeFunctionResult(functionFragment: "updateBaseFeeRates", data: BytesLike): Result;
|
|
2381
2648
|
decodeFunctionResult(functionFragment: "updateBrokerStatus", data: BytesLike): Result;
|
|
2382
2649
|
decodeFunctionResult(functionFragment: "updateFeeTier", data: BytesLike): Result;
|
|
2650
|
+
decodeFunctionResult(functionFragment: "updateFeeTiers", data: BytesLike): Result;
|
|
2383
2651
|
decodeFunctionResult(functionFragment: "updateOrder", data: BytesLike): Result;
|
|
2384
2652
|
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;
|
|
2388
2653
|
decodeFunctionResult(functionFragment: "userFeeData", data: BytesLike): Result;
|
|
2389
2654
|
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
|
2390
2655
|
decodeFunctionResult(functionFragment: "userRebates", data: BytesLike): Result;
|
|
@@ -2475,40 +2740,11 @@ declare namespace SignerUpdatedEvent {
|
|
|
2475
2740
|
type Log = TypedEventLog<Event>;
|
|
2476
2741
|
type LogDescription = TypedLogDescription<Event>;
|
|
2477
2742
|
}
|
|
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
|
-
}
|
|
2506
2743
|
declare namespace UserFeeDataUpdatedEvent {
|
|
2507
2744
|
type InputTuple = [
|
|
2508
2745
|
broker: AddressLike,
|
|
2509
2746
|
signer: AddressLike,
|
|
2510
2747
|
user: AddressLike,
|
|
2511
|
-
epoch: BigNumberish,
|
|
2512
2748
|
tier: BigNumberish,
|
|
2513
2749
|
referrer: AddressLike,
|
|
2514
2750
|
totalReferralRebatePct: BigNumberish,
|
|
@@ -2518,7 +2754,6 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2518
2754
|
broker: string,
|
|
2519
2755
|
signer: string,
|
|
2520
2756
|
user: string,
|
|
2521
|
-
epoch: bigint,
|
|
2522
2757
|
tier: bigint,
|
|
2523
2758
|
referrer: string,
|
|
2524
2759
|
totalReferralRebatePct: bigint,
|
|
@@ -2528,7 +2763,6 @@ declare namespace UserFeeDataUpdatedEvent {
|
|
|
2528
2763
|
broker: string;
|
|
2529
2764
|
signer: string;
|
|
2530
2765
|
user: string;
|
|
2531
|
-
epoch: bigint;
|
|
2532
2766
|
tier: bigint;
|
|
2533
2767
|
referrer: string;
|
|
2534
2768
|
totalReferralRebatePct: bigint;
|
|
@@ -2553,7 +2787,6 @@ interface Broker extends BaseContract {
|
|
|
2553
2787
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2554
2788
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2555
2789
|
FEE_TYPEHASH: TypedContractMethod<[], [string], "view">;
|
|
2556
|
-
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
2557
2790
|
__ERC2771ContextUpgradeable_init: TypedContractMethod<[
|
|
2558
2791
|
trustedForwarder_: AddressLike
|
|
2559
2792
|
], [
|
|
@@ -2573,6 +2806,16 @@ interface Broker extends BaseContract {
|
|
|
2573
2806
|
bigint[]
|
|
2574
2807
|
], "view">;
|
|
2575
2808
|
addressManager: TypedContractMethod<[], [string], "view">;
|
|
2809
|
+
adjustCollateral: TypedContractMethod<[
|
|
2810
|
+
depositParams: {
|
|
2811
|
+
token: AddressLike;
|
|
2812
|
+
amount: BigNumberish;
|
|
2813
|
+
},
|
|
2814
|
+
positionId: BytesLike,
|
|
2815
|
+
adjustAmount: BigNumberish
|
|
2816
|
+
], [
|
|
2817
|
+
void
|
|
2818
|
+
], "nonpayable">;
|
|
2576
2819
|
batchSetSpecialFeeTiers: TypedContractMethod<[
|
|
2577
2820
|
params: {
|
|
2578
2821
|
assetClass: BigNumberish;
|
|
@@ -2613,8 +2856,6 @@ interface Broker extends BaseContract {
|
|
|
2613
2856
|
], [
|
|
2614
2857
|
void
|
|
2615
2858
|
], "nonpayable">;
|
|
2616
|
-
currentFeeDataEpoch: TypedContractMethod<[], [bigint], "view">;
|
|
2617
|
-
domainSeparatorV4: TypedContractMethod<[], [string], "view">;
|
|
2618
2859
|
eip712Domain: TypedContractMethod<[
|
|
2619
2860
|
], [
|
|
2620
2861
|
[
|
|
@@ -2653,7 +2894,6 @@ interface Broker extends BaseContract {
|
|
|
2653
2894
|
makerFeeRate: bigint;
|
|
2654
2895
|
}
|
|
2655
2896
|
], "view">;
|
|
2656
|
-
getImplementation: TypedContractMethod<[], [string], "view">;
|
|
2657
2897
|
getSpecialFeeTier: TypedContractMethod<[
|
|
2658
2898
|
assetClass: BigNumberish,
|
|
2659
2899
|
riskTier: BigNumberish,
|
|
@@ -2664,19 +2904,6 @@ interface Broker extends BaseContract {
|
|
|
2664
2904
|
takerFeeRate: bigint;
|
|
2665
2905
|
}
|
|
2666
2906
|
], "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">;
|
|
2680
2907
|
getUserFeeRate: TypedContractMethod<[
|
|
2681
2908
|
user: AddressLike,
|
|
2682
2909
|
assetClass: BigNumberish,
|
|
@@ -2844,9 +3071,7 @@ interface Broker extends BaseContract {
|
|
|
2844
3071
|
], [
|
|
2845
3072
|
void
|
|
2846
3073
|
], "payable">;
|
|
2847
|
-
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
2848
3074
|
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
2849
|
-
resetAllUserFeeData: TypedContractMethod<[], [void], "nonpayable">;
|
|
2850
3075
|
setSigner: TypedContractMethod<[
|
|
2851
3076
|
signer: AddressLike,
|
|
2852
3077
|
isSigner: boolean
|
|
@@ -2921,6 +3146,17 @@ interface Broker extends BaseContract {
|
|
|
2921
3146
|
], [
|
|
2922
3147
|
void
|
|
2923
3148
|
], "nonpayable">;
|
|
3149
|
+
updateFeeTiers: TypedContractMethod<[
|
|
3150
|
+
assetClass: BigNumberish,
|
|
3151
|
+
riskTier: BigNumberish,
|
|
3152
|
+
feeTiers: BigNumberish[],
|
|
3153
|
+
feeRates: {
|
|
3154
|
+
takerFeeRate: BigNumberish;
|
|
3155
|
+
makerFeeRate: BigNumberish;
|
|
3156
|
+
}[]
|
|
3157
|
+
], [
|
|
3158
|
+
void
|
|
3159
|
+
], "nonpayable">;
|
|
2924
3160
|
updateOrder: TypedContractMethod<[
|
|
2925
3161
|
depositParams: {
|
|
2926
3162
|
token: AddressLike;
|
|
@@ -2957,31 +3193,7 @@ interface Broker extends BaseContract {
|
|
|
2957
3193
|
], [
|
|
2958
3194
|
void
|
|
2959
3195
|
], "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">;
|
|
2983
3196
|
userFeeData: TypedContractMethod<[
|
|
2984
|
-
userFeeDataEpoch: BigNumberish,
|
|
2985
3197
|
user: AddressLike
|
|
2986
3198
|
], [
|
|
2987
3199
|
[
|
|
@@ -3005,7 +3217,6 @@ interface Broker extends BaseContract {
|
|
|
3005
3217
|
], "view">;
|
|
3006
3218
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3007
3219
|
getFunction(nameOrSignature: "FEE_TYPEHASH"): TypedContractMethod<[], [string], "view">;
|
|
3008
|
-
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3009
3220
|
getFunction(nameOrSignature: "__ERC2771ContextUpgradeable_init"): TypedContractMethod<[
|
|
3010
3221
|
trustedForwarder_: AddressLike
|
|
3011
3222
|
], [
|
|
@@ -3025,6 +3236,16 @@ interface Broker extends BaseContract {
|
|
|
3025
3236
|
bigint[]
|
|
3026
3237
|
], "view">;
|
|
3027
3238
|
getFunction(nameOrSignature: "addressManager"): TypedContractMethod<[], [string], "view">;
|
|
3239
|
+
getFunction(nameOrSignature: "adjustCollateral"): TypedContractMethod<[
|
|
3240
|
+
depositParams: {
|
|
3241
|
+
token: AddressLike;
|
|
3242
|
+
amount: BigNumberish;
|
|
3243
|
+
},
|
|
3244
|
+
positionId: BytesLike,
|
|
3245
|
+
adjustAmount: BigNumberish
|
|
3246
|
+
], [
|
|
3247
|
+
void
|
|
3248
|
+
], "nonpayable">;
|
|
3028
3249
|
getFunction(nameOrSignature: "batchSetSpecialFeeTiers"): TypedContractMethod<[
|
|
3029
3250
|
params: {
|
|
3030
3251
|
assetClass: BigNumberish;
|
|
@@ -3053,8 +3274,6 @@ interface Broker extends BaseContract {
|
|
|
3053
3274
|
getFunction(nameOrSignature: "cancelOrders"): TypedContractMethod<[orderIds: BigNumberish[]], [void], "nonpayable">;
|
|
3054
3275
|
getFunction(nameOrSignature: "claimRebate"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
3055
3276
|
getFunction(nameOrSignature: "claimRebates"): TypedContractMethod<[tokens: AddressLike[]], [void], "nonpayable">;
|
|
3056
|
-
getFunction(nameOrSignature: "currentFeeDataEpoch"): TypedContractMethod<[], [bigint], "view">;
|
|
3057
|
-
getFunction(nameOrSignature: "domainSeparatorV4"): TypedContractMethod<[], [string], "view">;
|
|
3058
3277
|
getFunction(nameOrSignature: "eip712Domain"): TypedContractMethod<[
|
|
3059
3278
|
], [
|
|
3060
3279
|
[
|
|
@@ -3093,7 +3312,6 @@ interface Broker extends BaseContract {
|
|
|
3093
3312
|
makerFeeRate: bigint;
|
|
3094
3313
|
}
|
|
3095
3314
|
], "view">;
|
|
3096
|
-
getFunction(nameOrSignature: "getImplementation"): TypedContractMethod<[], [string], "view">;
|
|
3097
3315
|
getFunction(nameOrSignature: "getSpecialFeeTier"): TypedContractMethod<[
|
|
3098
3316
|
assetClass: BigNumberish,
|
|
3099
3317
|
riskTier: BigNumberish,
|
|
@@ -3104,19 +3322,6 @@ interface Broker extends BaseContract {
|
|
|
3104
3322
|
takerFeeRate: bigint;
|
|
3105
3323
|
}
|
|
3106
3324
|
], "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">;
|
|
3120
3325
|
getFunction(nameOrSignature: "getUserFeeRate"): TypedContractMethod<[
|
|
3121
3326
|
user: AddressLike,
|
|
3122
3327
|
assetClass: BigNumberish,
|
|
@@ -3280,9 +3485,7 @@ interface Broker extends BaseContract {
|
|
|
3280
3485
|
], [
|
|
3281
3486
|
void
|
|
3282
3487
|
], "payable">;
|
|
3283
|
-
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3284
3488
|
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3285
|
-
getFunction(nameOrSignature: "resetAllUserFeeData"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3286
3489
|
getFunction(nameOrSignature: "setSigner"): TypedContractMethod<[
|
|
3287
3490
|
signer: AddressLike,
|
|
3288
3491
|
isSigner: boolean
|
|
@@ -3349,6 +3552,17 @@ interface Broker extends BaseContract {
|
|
|
3349
3552
|
], [
|
|
3350
3553
|
void
|
|
3351
3554
|
], "nonpayable">;
|
|
3555
|
+
getFunction(nameOrSignature: "updateFeeTiers"): TypedContractMethod<[
|
|
3556
|
+
assetClass: BigNumberish,
|
|
3557
|
+
riskTier: BigNumberish,
|
|
3558
|
+
feeTiers: BigNumberish[],
|
|
3559
|
+
feeRates: {
|
|
3560
|
+
takerFeeRate: BigNumberish;
|
|
3561
|
+
makerFeeRate: BigNumberish;
|
|
3562
|
+
}[]
|
|
3563
|
+
], [
|
|
3564
|
+
void
|
|
3565
|
+
], "nonpayable">;
|
|
3352
3566
|
getFunction(nameOrSignature: "updateOrder"): TypedContractMethod<[
|
|
3353
3567
|
depositParams: {
|
|
3354
3568
|
token: AddressLike;
|
|
@@ -3385,31 +3599,7 @@ interface Broker extends BaseContract {
|
|
|
3385
3599
|
], [
|
|
3386
3600
|
void
|
|
3387
3601
|
], "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">;
|
|
3411
3602
|
getFunction(nameOrSignature: "userFeeData"): TypedContractMethod<[
|
|
3412
|
-
userFeeDataEpoch: BigNumberish,
|
|
3413
3603
|
user: AddressLike
|
|
3414
3604
|
], [
|
|
3415
3605
|
[
|
|
@@ -3438,8 +3628,6 @@ interface Broker extends BaseContract {
|
|
|
3438
3628
|
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
3439
3629
|
getEvent(key: "RebateClaimed"): TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3440
3630
|
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>;
|
|
3443
3631
|
getEvent(key: "UserFeeDataUpdated"): TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3444
3632
|
filters: {
|
|
3445
3633
|
"BrokerStatusUpdated(address,bool)": TypedContractEvent<BrokerStatusUpdatedEvent.InputTuple, BrokerStatusUpdatedEvent.OutputTuple, BrokerStatusUpdatedEvent.OutputObject>;
|
|
@@ -3456,11 +3644,7 @@ interface Broker extends BaseContract {
|
|
|
3456
3644
|
RebateClaimed: TypedContractEvent<RebateClaimedEvent.InputTuple, RebateClaimedEvent.OutputTuple, RebateClaimedEvent.OutputObject>;
|
|
3457
3645
|
"SignerUpdated(address,bool)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3458
3646
|
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
|
3459
|
-
"
|
|
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>;
|
|
3647
|
+
"UserFeeDataUpdated(address,address,address,uint8,address,uint32,uint32)": TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3464
3648
|
UserFeeDataUpdated: TypedContractEvent<UserFeeDataUpdatedEvent.InputTuple, UserFeeDataUpdatedEvent.OutputTuple, UserFeeDataUpdatedEvent.OutputObject>;
|
|
3465
3649
|
};
|
|
3466
3650
|
}
|
|
@@ -3476,6 +3660,84 @@ declare class BaseMyxClient {
|
|
|
3476
3660
|
protected get config(): MyxClientConfig;
|
|
3477
3661
|
}
|
|
3478
3662
|
|
|
3663
|
+
interface AppealVoteParams {
|
|
3664
|
+
caseId: number;
|
|
3665
|
+
validator: Address$2;
|
|
3666
|
+
isFor: boolean;
|
|
3667
|
+
deadline: number;
|
|
3668
|
+
v: number;
|
|
3669
|
+
r: string;
|
|
3670
|
+
s: string;
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
declare class Appeal extends BaseMyxClient {
|
|
3674
|
+
constructor(client: MyxClient);
|
|
3675
|
+
private getDisputeCourtContract;
|
|
3676
|
+
private getReimbursementContract;
|
|
3677
|
+
/**
|
|
3678
|
+
* submit appeal
|
|
3679
|
+
* @param poolId - the pool id
|
|
3680
|
+
* @param poolToken - the pool token
|
|
3681
|
+
* @returns the transaction receipt
|
|
3682
|
+
*/
|
|
3683
|
+
submitAppeal(poolId: string, lpToken: Address$2, lpAmount: string): Promise<{
|
|
3684
|
+
transaction: ethers.ContractTransactionReceipt;
|
|
3685
|
+
caseId: bigint;
|
|
3686
|
+
}>;
|
|
3687
|
+
/**
|
|
3688
|
+
* vote for appeal
|
|
3689
|
+
* @param caseId - the case id
|
|
3690
|
+
* @param isFor - true if for the appeal, false if against the appeal
|
|
3691
|
+
* @returns the transaction receipt
|
|
3692
|
+
*/
|
|
3693
|
+
voteForAppeal({ caseId, validator, isFor, deadline, v, r, s, }: AppealVoteParams): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3694
|
+
/**
|
|
3695
|
+
* claim appeal margin
|
|
3696
|
+
* @param caseId - the case id
|
|
3697
|
+
* @returns the transaction receipt
|
|
3698
|
+
*/
|
|
3699
|
+
claimAppealMargin(caseId: number): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3700
|
+
/**
|
|
3701
|
+
* claim reimbursement
|
|
3702
|
+
* @param caseId - the case id
|
|
3703
|
+
* @param baseAmount - the base amount
|
|
3704
|
+
* @param quoteAmount - the quote amount
|
|
3705
|
+
* @param merkleProof - the merkle proof
|
|
3706
|
+
* @returns the transaction receipt
|
|
3707
|
+
*/
|
|
3708
|
+
claimReimbursement(caseId: number, baseAmount: number, quoteAmount: number, merkleProof: BytesLike[]): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3709
|
+
/**
|
|
3710
|
+
* get dispute configuration
|
|
3711
|
+
*/
|
|
3712
|
+
getDisputeConfiguration(): Promise<[string, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint] & {
|
|
3713
|
+
appealToken: string;
|
|
3714
|
+
disputeBondUsd: bigint;
|
|
3715
|
+
appealBondUsd: bigint;
|
|
3716
|
+
disputeThresholdUsd: bigint;
|
|
3717
|
+
caseDuration: bigint;
|
|
3718
|
+
voteDuration: bigint;
|
|
3719
|
+
resolveDuration: bigint;
|
|
3720
|
+
voteCountRate: bigint;
|
|
3721
|
+
effectiveVoteRate: bigint;
|
|
3722
|
+
}>;
|
|
3723
|
+
appealReconsideration(caseId: number, appealToken: Address$2, appealAmount: string): Promise<ethers.ContractTransactionReceipt | null>;
|
|
3724
|
+
/**
|
|
3725
|
+
* http api
|
|
3726
|
+
*/
|
|
3727
|
+
getAppealList(params: GetAppealListParams): Promise<ApiResponse<AppealListItem[]>>;
|
|
3728
|
+
getAppealDetail(params: GetAppealDetailParams): Promise<ApiResponse<AppealDetail>>;
|
|
3729
|
+
uploadAppealEvidence(params: AppealUploadEvidenceParams): Promise<ApiResponse<null>>;
|
|
3730
|
+
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
3731
|
+
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
3732
|
+
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
3733
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
3734
|
+
getAppealNodeVoteDetail(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
3735
|
+
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3736
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
3737
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
3738
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3479
3741
|
declare class Referrals extends BaseMyxClient {
|
|
3480
3742
|
constructor(client: MyxClient);
|
|
3481
3743
|
claimRebate(tokenAddress: Address$2): Promise<ethers.ContractTransactionReceipt | null>;
|
|
@@ -3486,7 +3748,7 @@ declare class MyxClient {
|
|
|
3486
3748
|
* private properties
|
|
3487
3749
|
*/
|
|
3488
3750
|
private configManager;
|
|
3489
|
-
|
|
3751
|
+
logger: Logger;
|
|
3490
3752
|
/**
|
|
3491
3753
|
* public properties
|
|
3492
3754
|
*/
|
|
@@ -3498,6 +3760,7 @@ declare class MyxClient {
|
|
|
3498
3760
|
account: Account;
|
|
3499
3761
|
seamless: Seamless;
|
|
3500
3762
|
api: Api;
|
|
3763
|
+
appeal: Appeal;
|
|
3501
3764
|
referrals: Referrals;
|
|
3502
3765
|
/**
|
|
3503
3766
|
* 获取配置管理器(用于访问 accessToken 相关方法)
|
|
@@ -3519,4 +3782,4 @@ declare class MyxClient {
|
|
|
3519
3782
|
getAccessToken(): Promise<string | null>;
|
|
3520
3783
|
}
|
|
3521
3784
|
|
|
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 };
|
|
3785
|
+
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, 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 GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, IsVoteNodeEnum, 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, NodeTypeEnum, 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 PostVoteResponse, type PostVoteSignatureParams, 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, VoteTypeEnum, 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 };
|