@myx-trade/sdk 0.1.245-beta.7 → 0.1.245-beta.9
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 +53 -3
- package/dist/index.d.ts +53 -3
- package/dist/index.js +68 -1
- package/dist/index.mjs +65 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -760,6 +760,8 @@ interface PoolSymbolAllResponse {
|
|
|
760
760
|
baseSymbol: string;
|
|
761
761
|
quoteSymbol: string;
|
|
762
762
|
baseTokenIcon: string;
|
|
763
|
+
baseToken: string;
|
|
764
|
+
quoteToken: string;
|
|
763
765
|
}
|
|
764
766
|
|
|
765
767
|
declare const getBaseUrlByEnv: () => "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
@@ -1672,6 +1674,33 @@ interface GetAppealNodeVoteListParams {
|
|
|
1672
1674
|
after?: number;
|
|
1673
1675
|
limit?: number;
|
|
1674
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
|
+
}
|
|
1675
1704
|
interface AppealNodeVoteItem {
|
|
1676
1705
|
voteDeadline: number;
|
|
1677
1706
|
disputeEvidenceUrl: string;
|
|
@@ -1688,6 +1717,19 @@ declare enum IsVoteNodeEnum {
|
|
|
1688
1717
|
Yes = 1,
|
|
1689
1718
|
No = 0
|
|
1690
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;
|
|
1691
1733
|
|
|
1692
1734
|
interface RequestOptions extends WretchOptions {
|
|
1693
1735
|
auth?: boolean;
|
|
@@ -1750,8 +1792,12 @@ declare class Api extends Request {
|
|
|
1750
1792
|
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
1751
1793
|
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
1752
1794
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1753
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<
|
|
1795
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
1796
|
+
getAppealNodeVoteDetails(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1754
1797
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1798
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
1799
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
1800
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
1755
1801
|
/**
|
|
1756
1802
|
* appeal module end ------>
|
|
1757
1803
|
*/
|
|
@@ -3675,8 +3721,12 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3675
3721
|
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
3676
3722
|
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
3677
3723
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
3678
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<
|
|
3724
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
3725
|
+
getAppealNodeVoteDetail(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
3679
3726
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3727
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
3728
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
3729
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
3680
3730
|
}
|
|
3681
3731
|
|
|
3682
3732
|
declare class Referrals extends BaseMyxClient {
|
|
@@ -3723,4 +3773,4 @@ declare class MyxClient {
|
|
|
3723
3773
|
getAccessToken(): Promise<string | null>;
|
|
3724
3774
|
}
|
|
3725
3775
|
|
|
3726
|
-
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, type AppealNodeVoteItem, 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 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 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 };
|
|
3776
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -760,6 +760,8 @@ interface PoolSymbolAllResponse {
|
|
|
760
760
|
baseSymbol: string;
|
|
761
761
|
quoteSymbol: string;
|
|
762
762
|
baseTokenIcon: string;
|
|
763
|
+
baseToken: string;
|
|
764
|
+
quoteToken: string;
|
|
763
765
|
}
|
|
764
766
|
|
|
765
767
|
declare const getBaseUrlByEnv: () => "https://api-beta.myx.finance" | "https://api-test.myx.cash" | "https://api.myx.finance";
|
|
@@ -1672,6 +1674,33 @@ interface GetAppealNodeVoteListParams {
|
|
|
1672
1674
|
after?: number;
|
|
1673
1675
|
limit?: number;
|
|
1674
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
|
+
}
|
|
1675
1704
|
interface AppealNodeVoteItem {
|
|
1676
1705
|
voteDeadline: number;
|
|
1677
1706
|
disputeEvidenceUrl: string;
|
|
@@ -1688,6 +1717,19 @@ declare enum IsVoteNodeEnum {
|
|
|
1688
1717
|
Yes = 1,
|
|
1689
1718
|
No = 0
|
|
1690
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;
|
|
1691
1733
|
|
|
1692
1734
|
interface RequestOptions extends WretchOptions {
|
|
1693
1735
|
auth?: boolean;
|
|
@@ -1750,8 +1792,12 @@ declare class Api extends Request {
|
|
|
1750
1792
|
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
1751
1793
|
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
1752
1794
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1753
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<
|
|
1795
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
1796
|
+
getAppealNodeVoteDetails(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1754
1797
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1798
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
1799
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
1800
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
1755
1801
|
/**
|
|
1756
1802
|
* appeal module end ------>
|
|
1757
1803
|
*/
|
|
@@ -3675,8 +3721,12 @@ declare class Appeal extends BaseMyxClient {
|
|
|
3675
3721
|
getAppealReconsiderationList(params: GetAppealReconsiderationListParams): Promise<ApiResponse<AppealReconsiderationListItem[]>>;
|
|
3676
3722
|
getAppealReconsiderationDetail(params: GetAppealReconsiderationDetailParams): Promise<ApiResponse<AppealReconsiderationDetail>>;
|
|
3677
3723
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
3678
|
-
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<
|
|
3724
|
+
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteListItem[]>>;
|
|
3725
|
+
getAppealNodeVoteDetail(params: GetAppealVoteNodeDetailParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
3679
3726
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3727
|
+
postVoteSignature(params: PostVoteSignatureParams): Promise<ApiResponse<PostVoteResponse>>;
|
|
3728
|
+
getPedingVoteCount(): Promise<ApiResponse<number>>;
|
|
3729
|
+
getMyAppealCount(): Promise<ApiResponse<number>>;
|
|
3680
3730
|
}
|
|
3681
3731
|
|
|
3682
3732
|
declare class Referrals extends BaseMyxClient {
|
|
@@ -3723,4 +3773,4 @@ declare class MyxClient {
|
|
|
3723
3773
|
getAccessToken(): Promise<string | null>;
|
|
3724
3774
|
}
|
|
3725
3775
|
|
|
3726
|
-
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, type AppealNodeVoteItem, 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 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 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 };
|
|
3776
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,10 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
37
37
|
// src/index.ts
|
|
38
38
|
var index_exports = {};
|
|
39
39
|
__export(index_exports, {
|
|
40
|
+
AppealCaseTypeEnum: () => AppealCaseTypeEnum,
|
|
40
41
|
AppealClaimStatusEnum: () => AppealClaimStatusEnum,
|
|
42
|
+
AppealNodeStateEnum: () => AppealNodeStateEnum,
|
|
43
|
+
AppealNodeVotedStateEnum: () => AppealNodeVotedStateEnum,
|
|
41
44
|
AppealReconsiderationType: () => AppealReconsiderationType,
|
|
42
45
|
AppealStage: () => AppealStage,
|
|
43
46
|
AppealType: () => AppealType,
|
|
@@ -1852,7 +1855,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1852
1855
|
// package.json
|
|
1853
1856
|
var package_default = {
|
|
1854
1857
|
name: "@myx-trade/sdk",
|
|
1855
|
-
version: "0.1.245-beta.
|
|
1858
|
+
version: "0.1.245-beta.9",
|
|
1856
1859
|
private: false,
|
|
1857
1860
|
publishConfig: {
|
|
1858
1861
|
access: "public"
|
|
@@ -22771,6 +22774,12 @@ var Api = class extends Request {
|
|
|
22771
22774
|
);
|
|
22772
22775
|
}
|
|
22773
22776
|
async getAppealNodeVoteList(params) {
|
|
22777
|
+
return this.get(
|
|
22778
|
+
"/openapi/gateway/scan/node/vote-list",
|
|
22779
|
+
params
|
|
22780
|
+
);
|
|
22781
|
+
}
|
|
22782
|
+
async getAppealNodeVoteDetails(params) {
|
|
22774
22783
|
return this.get(
|
|
22775
22784
|
"/openapi/gateway/scan/node/vote-details",
|
|
22776
22785
|
params
|
|
@@ -22782,6 +22791,33 @@ var Api = class extends Request {
|
|
|
22782
22791
|
params
|
|
22783
22792
|
);
|
|
22784
22793
|
}
|
|
22794
|
+
async postVoteSignature(params) {
|
|
22795
|
+
return this.get(
|
|
22796
|
+
`/openapi/gateway/scan/node/vote`,
|
|
22797
|
+
params,
|
|
22798
|
+
{
|
|
22799
|
+
auth: true
|
|
22800
|
+
}
|
|
22801
|
+
);
|
|
22802
|
+
}
|
|
22803
|
+
async getPedingVoteCount() {
|
|
22804
|
+
return this.get(
|
|
22805
|
+
"/openapi/gateway/scan/node/pending-vote-total",
|
|
22806
|
+
{},
|
|
22807
|
+
{
|
|
22808
|
+
auth: true
|
|
22809
|
+
}
|
|
22810
|
+
);
|
|
22811
|
+
}
|
|
22812
|
+
async getMyAppealCount() {
|
|
22813
|
+
return this.get(
|
|
22814
|
+
"/openapi/gateway/scan/processing-total",
|
|
22815
|
+
{},
|
|
22816
|
+
{
|
|
22817
|
+
auth: true
|
|
22818
|
+
}
|
|
22819
|
+
);
|
|
22820
|
+
}
|
|
22785
22821
|
/**
|
|
22786
22822
|
* appeal module end ------>
|
|
22787
22823
|
*/
|
|
@@ -23422,9 +23458,21 @@ var Appeal = class extends BaseMyxClient {
|
|
|
23422
23458
|
async getAppealNodeVoteList(params) {
|
|
23423
23459
|
return this.client.api.getAppealNodeVoteList(params);
|
|
23424
23460
|
}
|
|
23461
|
+
async getAppealNodeVoteDetail(params) {
|
|
23462
|
+
return this.client.api.getAppealNodeVoteDetails(params);
|
|
23463
|
+
}
|
|
23425
23464
|
async getIsVoteNode(params) {
|
|
23426
23465
|
return this.client.api.getIsVoteNode(params);
|
|
23427
23466
|
}
|
|
23467
|
+
async postVoteSignature(params) {
|
|
23468
|
+
return this.client.api.postVoteSignature(params);
|
|
23469
|
+
}
|
|
23470
|
+
async getPedingVoteCount() {
|
|
23471
|
+
return this.client.api.getPedingVoteCount();
|
|
23472
|
+
}
|
|
23473
|
+
async getMyAppealCount() {
|
|
23474
|
+
return this.client.api.getMyAppealCount();
|
|
23475
|
+
}
|
|
23428
23476
|
};
|
|
23429
23477
|
|
|
23430
23478
|
// src/manager/referrals/index.tsx
|
|
@@ -23495,6 +23543,22 @@ var AppealClaimStatusEnum = /* @__PURE__ */ ((AppealClaimStatusEnum2) => {
|
|
|
23495
23543
|
AppealClaimStatusEnum2[AppealClaimStatusEnum2["Claimed"] = 1] = "Claimed";
|
|
23496
23544
|
return AppealClaimStatusEnum2;
|
|
23497
23545
|
})(AppealClaimStatusEnum || {});
|
|
23546
|
+
var AppealNodeVotedStateEnum = /* @__PURE__ */ ((AppealNodeVotedStateEnum2) => {
|
|
23547
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["NotVoted"] = 0] = "NotVoted";
|
|
23548
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["Voted"] = 1] = "Voted";
|
|
23549
|
+
return AppealNodeVotedStateEnum2;
|
|
23550
|
+
})(AppealNodeVotedStateEnum || {});
|
|
23551
|
+
var AppealCaseTypeEnum = /* @__PURE__ */ ((AppealCaseTypeEnum2) => {
|
|
23552
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Appeal"] = 1] = "Appeal";
|
|
23553
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Reconsideration"] = 2] = "Reconsideration";
|
|
23554
|
+
return AppealCaseTypeEnum2;
|
|
23555
|
+
})(AppealCaseTypeEnum || {});
|
|
23556
|
+
var AppealNodeStateEnum = /* @__PURE__ */ ((AppealNodeStateEnum2) => {
|
|
23557
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["NoVote"] = 0] = "NoVote";
|
|
23558
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Supported"] = 1] = "Supported";
|
|
23559
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Rejected"] = 2] = "Rejected";
|
|
23560
|
+
return AppealNodeStateEnum2;
|
|
23561
|
+
})(AppealNodeStateEnum || {});
|
|
23498
23562
|
var IsVoteNodeEnum = /* @__PURE__ */ ((IsVoteNodeEnum2) => {
|
|
23499
23563
|
IsVoteNodeEnum2[IsVoteNodeEnum2["Yes"] = 1] = "Yes";
|
|
23500
23564
|
IsVoteNodeEnum2[IsVoteNodeEnum2["No"] = 0] = "No";
|
|
@@ -23578,7 +23642,10 @@ var MyxClient = class {
|
|
|
23578
23642
|
};
|
|
23579
23643
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23580
23644
|
0 && (module.exports = {
|
|
23645
|
+
AppealCaseTypeEnum,
|
|
23581
23646
|
AppealClaimStatusEnum,
|
|
23647
|
+
AppealNodeStateEnum,
|
|
23648
|
+
AppealNodeVotedStateEnum,
|
|
23582
23649
|
AppealReconsiderationType,
|
|
23583
23650
|
AppealStage,
|
|
23584
23651
|
AppealType,
|
package/dist/index.mjs
CHANGED
|
@@ -1769,7 +1769,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1769
1769
|
// package.json
|
|
1770
1770
|
var package_default = {
|
|
1771
1771
|
name: "@myx-trade/sdk",
|
|
1772
|
-
version: "0.1.245-beta.
|
|
1772
|
+
version: "0.1.245-beta.9",
|
|
1773
1773
|
private: false,
|
|
1774
1774
|
publishConfig: {
|
|
1775
1775
|
access: "public"
|
|
@@ -22688,6 +22688,12 @@ var Api = class extends Request {
|
|
|
22688
22688
|
);
|
|
22689
22689
|
}
|
|
22690
22690
|
async getAppealNodeVoteList(params) {
|
|
22691
|
+
return this.get(
|
|
22692
|
+
"/openapi/gateway/scan/node/vote-list",
|
|
22693
|
+
params
|
|
22694
|
+
);
|
|
22695
|
+
}
|
|
22696
|
+
async getAppealNodeVoteDetails(params) {
|
|
22691
22697
|
return this.get(
|
|
22692
22698
|
"/openapi/gateway/scan/node/vote-details",
|
|
22693
22699
|
params
|
|
@@ -22699,6 +22705,33 @@ var Api = class extends Request {
|
|
|
22699
22705
|
params
|
|
22700
22706
|
);
|
|
22701
22707
|
}
|
|
22708
|
+
async postVoteSignature(params) {
|
|
22709
|
+
return this.get(
|
|
22710
|
+
`/openapi/gateway/scan/node/vote`,
|
|
22711
|
+
params,
|
|
22712
|
+
{
|
|
22713
|
+
auth: true
|
|
22714
|
+
}
|
|
22715
|
+
);
|
|
22716
|
+
}
|
|
22717
|
+
async getPedingVoteCount() {
|
|
22718
|
+
return this.get(
|
|
22719
|
+
"/openapi/gateway/scan/node/pending-vote-total",
|
|
22720
|
+
{},
|
|
22721
|
+
{
|
|
22722
|
+
auth: true
|
|
22723
|
+
}
|
|
22724
|
+
);
|
|
22725
|
+
}
|
|
22726
|
+
async getMyAppealCount() {
|
|
22727
|
+
return this.get(
|
|
22728
|
+
"/openapi/gateway/scan/processing-total",
|
|
22729
|
+
{},
|
|
22730
|
+
{
|
|
22731
|
+
auth: true
|
|
22732
|
+
}
|
|
22733
|
+
);
|
|
22734
|
+
}
|
|
22702
22735
|
/**
|
|
22703
22736
|
* appeal module end ------>
|
|
22704
22737
|
*/
|
|
@@ -23339,9 +23372,21 @@ var Appeal = class extends BaseMyxClient {
|
|
|
23339
23372
|
async getAppealNodeVoteList(params) {
|
|
23340
23373
|
return this.client.api.getAppealNodeVoteList(params);
|
|
23341
23374
|
}
|
|
23375
|
+
async getAppealNodeVoteDetail(params) {
|
|
23376
|
+
return this.client.api.getAppealNodeVoteDetails(params);
|
|
23377
|
+
}
|
|
23342
23378
|
async getIsVoteNode(params) {
|
|
23343
23379
|
return this.client.api.getIsVoteNode(params);
|
|
23344
23380
|
}
|
|
23381
|
+
async postVoteSignature(params) {
|
|
23382
|
+
return this.client.api.postVoteSignature(params);
|
|
23383
|
+
}
|
|
23384
|
+
async getPedingVoteCount() {
|
|
23385
|
+
return this.client.api.getPedingVoteCount();
|
|
23386
|
+
}
|
|
23387
|
+
async getMyAppealCount() {
|
|
23388
|
+
return this.client.api.getMyAppealCount();
|
|
23389
|
+
}
|
|
23345
23390
|
};
|
|
23346
23391
|
|
|
23347
23392
|
// src/manager/referrals/index.tsx
|
|
@@ -23412,6 +23457,22 @@ var AppealClaimStatusEnum = /* @__PURE__ */ ((AppealClaimStatusEnum2) => {
|
|
|
23412
23457
|
AppealClaimStatusEnum2[AppealClaimStatusEnum2["Claimed"] = 1] = "Claimed";
|
|
23413
23458
|
return AppealClaimStatusEnum2;
|
|
23414
23459
|
})(AppealClaimStatusEnum || {});
|
|
23460
|
+
var AppealNodeVotedStateEnum = /* @__PURE__ */ ((AppealNodeVotedStateEnum2) => {
|
|
23461
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["NotVoted"] = 0] = "NotVoted";
|
|
23462
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["Voted"] = 1] = "Voted";
|
|
23463
|
+
return AppealNodeVotedStateEnum2;
|
|
23464
|
+
})(AppealNodeVotedStateEnum || {});
|
|
23465
|
+
var AppealCaseTypeEnum = /* @__PURE__ */ ((AppealCaseTypeEnum2) => {
|
|
23466
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Appeal"] = 1] = "Appeal";
|
|
23467
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Reconsideration"] = 2] = "Reconsideration";
|
|
23468
|
+
return AppealCaseTypeEnum2;
|
|
23469
|
+
})(AppealCaseTypeEnum || {});
|
|
23470
|
+
var AppealNodeStateEnum = /* @__PURE__ */ ((AppealNodeStateEnum2) => {
|
|
23471
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["NoVote"] = 0] = "NoVote";
|
|
23472
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Supported"] = 1] = "Supported";
|
|
23473
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Rejected"] = 2] = "Rejected";
|
|
23474
|
+
return AppealNodeStateEnum2;
|
|
23475
|
+
})(AppealNodeStateEnum || {});
|
|
23415
23476
|
var IsVoteNodeEnum = /* @__PURE__ */ ((IsVoteNodeEnum2) => {
|
|
23416
23477
|
IsVoteNodeEnum2[IsVoteNodeEnum2["Yes"] = 1] = "Yes";
|
|
23417
23478
|
IsVoteNodeEnum2[IsVoteNodeEnum2["No"] = 0] = "No";
|
|
@@ -23494,7 +23555,10 @@ var MyxClient = class {
|
|
|
23494
23555
|
}
|
|
23495
23556
|
};
|
|
23496
23557
|
export {
|
|
23558
|
+
AppealCaseTypeEnum,
|
|
23497
23559
|
AppealClaimStatusEnum,
|
|
23560
|
+
AppealNodeStateEnum,
|
|
23561
|
+
AppealNodeVotedStateEnum,
|
|
23498
23562
|
AppealReconsiderationType,
|
|
23499
23563
|
AppealStage,
|
|
23500
23564
|
AppealType,
|