@myx-trade/sdk 0.1.245-beta.6 → 0.1.245-beta.8
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 +49 -3
- package/dist/index.d.ts +49 -3
- package/dist/index.js +121 -1
- package/dist/index.mjs +111 -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,7 +3721,7 @@ 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[]>>;
|
|
3679
3725
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3680
3726
|
}
|
|
3681
3727
|
|
|
@@ -3723,4 +3769,4 @@ declare class MyxClient {
|
|
|
3723
3769
|
getAccessToken(): Promise<string | null>;
|
|
3724
3770
|
}
|
|
3725
3771
|
|
|
3726
|
-
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 };
|
|
3772
|
+
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,7 +3721,7 @@ 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[]>>;
|
|
3679
3725
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
3680
3726
|
}
|
|
3681
3727
|
|
|
@@ -3723,4 +3769,4 @@ declare class MyxClient {
|
|
|
3723
3769
|
getAccessToken(): Promise<string | null>;
|
|
3724
3770
|
}
|
|
3725
3771
|
|
|
3726
|
-
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 };
|
|
3772
|
+
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,6 +37,13 @@ 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,
|
|
41
|
+
AppealClaimStatusEnum: () => AppealClaimStatusEnum,
|
|
42
|
+
AppealNodeStateEnum: () => AppealNodeStateEnum,
|
|
43
|
+
AppealNodeVotedStateEnum: () => AppealNodeVotedStateEnum,
|
|
44
|
+
AppealReconsiderationType: () => AppealReconsiderationType,
|
|
45
|
+
AppealStage: () => AppealStage,
|
|
46
|
+
AppealType: () => AppealType,
|
|
40
47
|
COMMON_LP_AMOUNT_DECIMALS: () => COMMON_LP_AMOUNT_DECIMALS,
|
|
41
48
|
COMMON_PRICE_DECIMALS: () => COMMON_PRICE_DECIMALS,
|
|
42
49
|
ChainId: () => ChainId,
|
|
@@ -47,11 +54,13 @@ __export(index_exports, {
|
|
|
47
54
|
ExecTypeEnum: () => ExecTypeEnum,
|
|
48
55
|
ForwarderGetStatus: () => ForwarderGetStatus,
|
|
49
56
|
HttpKlineIntervalEnum: () => HttpKlineIntervalEnum,
|
|
57
|
+
IsVoteNodeEnum: () => IsVoteNodeEnum,
|
|
50
58
|
MarketCapType: () => MarketCapType,
|
|
51
59
|
MarketPoolState: () => MarketPoolState,
|
|
52
60
|
MarketType: () => MarketType,
|
|
53
61
|
MxSDK: () => MxSDK,
|
|
54
62
|
MyxClient: () => MyxClient,
|
|
63
|
+
NodeTypeEnum: () => NodeTypeEnum,
|
|
55
64
|
OperationEnum: () => OperationEnum,
|
|
56
65
|
OperationType: () => OperationType,
|
|
57
66
|
OracleType: () => OracleType,
|
|
@@ -66,6 +75,7 @@ __export(index_exports, {
|
|
|
66
75
|
TradeFlowTypeEnum: () => TradeFlowTypeEnum,
|
|
67
76
|
TriggerType: () => TriggerType2,
|
|
68
77
|
TriggerTypeEnum: () => TriggerTypeEnum,
|
|
78
|
+
VoteTypeEnum: () => VoteTypeEnum,
|
|
69
79
|
approve: () => approve,
|
|
70
80
|
base: () => base_exports,
|
|
71
81
|
bigintAmountSlipperCalculator: () => bigintAmountSlipperCalculator,
|
|
@@ -1845,7 +1855,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1845
1855
|
// package.json
|
|
1846
1856
|
var package_default = {
|
|
1847
1857
|
name: "@myx-trade/sdk",
|
|
1848
|
-
version: "0.1.245-beta.
|
|
1858
|
+
version: "0.1.245-beta.8",
|
|
1849
1859
|
private: false,
|
|
1850
1860
|
publishConfig: {
|
|
1851
1861
|
access: "public"
|
|
@@ -22764,6 +22774,12 @@ var Api = class extends Request {
|
|
|
22764
22774
|
);
|
|
22765
22775
|
}
|
|
22766
22776
|
async getAppealNodeVoteList(params) {
|
|
22777
|
+
return this.get(
|
|
22778
|
+
"/openapi/gateway/scan/node/vote-list",
|
|
22779
|
+
params
|
|
22780
|
+
);
|
|
22781
|
+
}
|
|
22782
|
+
async getAppealNodeVoteDetails(params) {
|
|
22767
22783
|
return this.get(
|
|
22768
22784
|
"/openapi/gateway/scan/node/vote-details",
|
|
22769
22785
|
params
|
|
@@ -22775,6 +22791,33 @@ var Api = class extends Request {
|
|
|
22775
22791
|
params
|
|
22776
22792
|
);
|
|
22777
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
|
+
}
|
|
22778
22821
|
/**
|
|
22779
22822
|
* appeal module end ------>
|
|
22780
22823
|
*/
|
|
@@ -23443,6 +23486,73 @@ var Referrals = class extends BaseMyxClient {
|
|
|
23443
23486
|
}
|
|
23444
23487
|
};
|
|
23445
23488
|
|
|
23489
|
+
// src/manager/api/appeal-type.ts
|
|
23490
|
+
var AppealType = /* @__PURE__ */ ((AppealType2) => {
|
|
23491
|
+
AppealType2[AppealType2["UnderReview"] = 1] = "UnderReview";
|
|
23492
|
+
AppealType2[AppealType2["InitialVote"] = 2] = "InitialVote";
|
|
23493
|
+
AppealType2[AppealType2["PublicNotice"] = 3] = "PublicNotice";
|
|
23494
|
+
AppealType2[AppealType2["UnderReconsideration"] = 4] = "UnderReconsideration";
|
|
23495
|
+
AppealType2[AppealType2["Won"] = 5] = "Won";
|
|
23496
|
+
AppealType2[AppealType2["Failed"] = 6] = "Failed";
|
|
23497
|
+
AppealType2[AppealType2["PlatformRuling"] = 7] = "PlatformRuling";
|
|
23498
|
+
AppealType2[AppealType2["PlatformRevoked"] = 8] = "PlatformRevoked";
|
|
23499
|
+
return AppealType2;
|
|
23500
|
+
})(AppealType || {});
|
|
23501
|
+
var AppealReconsiderationType = /* @__PURE__ */ ((AppealReconsiderationType2) => {
|
|
23502
|
+
AppealReconsiderationType2[AppealReconsiderationType2["InitialVoting"] = 1] = "InitialVoting";
|
|
23503
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PublicNotice"] = 2] = "PublicNotice";
|
|
23504
|
+
AppealReconsiderationType2[AppealReconsiderationType2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23505
|
+
AppealReconsiderationType2[AppealReconsiderationType2["Won"] = 4] = "Won";
|
|
23506
|
+
AppealReconsiderationType2[AppealReconsiderationType2["Failed"] = 5] = "Failed";
|
|
23507
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRuling"] = 6] = "PlatformRuling";
|
|
23508
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRevoked"] = 7] = "PlatformRevoked";
|
|
23509
|
+
AppealReconsiderationType2[AppealReconsiderationType2["ReconsiderationVoting"] = 8] = "ReconsiderationVoting";
|
|
23510
|
+
return AppealReconsiderationType2;
|
|
23511
|
+
})(AppealReconsiderationType || {});
|
|
23512
|
+
var AppealStage = /* @__PURE__ */ ((AppealStage2) => {
|
|
23513
|
+
AppealStage2[AppealStage2["UnderReview"] = 1] = "UnderReview";
|
|
23514
|
+
AppealStage2[AppealStage2["PublicNotice"] = 2] = "PublicNotice";
|
|
23515
|
+
AppealStage2[AppealStage2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23516
|
+
AppealStage2[AppealStage2["Completed"] = 4] = "Completed";
|
|
23517
|
+
return AppealStage2;
|
|
23518
|
+
})(AppealStage || {});
|
|
23519
|
+
var NodeTypeEnum = /* @__PURE__ */ ((NodeTypeEnum2) => {
|
|
23520
|
+
NodeTypeEnum2[NodeTypeEnum2["ElectionNode"] = 0] = "ElectionNode";
|
|
23521
|
+
NodeTypeEnum2[NodeTypeEnum2["OfficialNode"] = 1] = "OfficialNode";
|
|
23522
|
+
return NodeTypeEnum2;
|
|
23523
|
+
})(NodeTypeEnum || {});
|
|
23524
|
+
var VoteTypeEnum = /* @__PURE__ */ ((VoteTypeEnum2) => {
|
|
23525
|
+
VoteTypeEnum2[VoteTypeEnum2["Reject"] = 0] = "Reject";
|
|
23526
|
+
VoteTypeEnum2[VoteTypeEnum2["Support"] = 1] = "Support";
|
|
23527
|
+
return VoteTypeEnum2;
|
|
23528
|
+
})(VoteTypeEnum || {});
|
|
23529
|
+
var AppealClaimStatusEnum = /* @__PURE__ */ ((AppealClaimStatusEnum2) => {
|
|
23530
|
+
AppealClaimStatusEnum2[AppealClaimStatusEnum2["UnClaimed"] = 0] = "UnClaimed";
|
|
23531
|
+
AppealClaimStatusEnum2[AppealClaimStatusEnum2["Claimed"] = 1] = "Claimed";
|
|
23532
|
+
return AppealClaimStatusEnum2;
|
|
23533
|
+
})(AppealClaimStatusEnum || {});
|
|
23534
|
+
var AppealNodeVotedStateEnum = /* @__PURE__ */ ((AppealNodeVotedStateEnum2) => {
|
|
23535
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["NotVoted"] = 0] = "NotVoted";
|
|
23536
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["Voted"] = 1] = "Voted";
|
|
23537
|
+
return AppealNodeVotedStateEnum2;
|
|
23538
|
+
})(AppealNodeVotedStateEnum || {});
|
|
23539
|
+
var AppealCaseTypeEnum = /* @__PURE__ */ ((AppealCaseTypeEnum2) => {
|
|
23540
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Appeal"] = 1] = "Appeal";
|
|
23541
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Reconsideration"] = 2] = "Reconsideration";
|
|
23542
|
+
return AppealCaseTypeEnum2;
|
|
23543
|
+
})(AppealCaseTypeEnum || {});
|
|
23544
|
+
var AppealNodeStateEnum = /* @__PURE__ */ ((AppealNodeStateEnum2) => {
|
|
23545
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["NoVote"] = 0] = "NoVote";
|
|
23546
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Supported"] = 1] = "Supported";
|
|
23547
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Rejected"] = 2] = "Rejected";
|
|
23548
|
+
return AppealNodeStateEnum2;
|
|
23549
|
+
})(AppealNodeStateEnum || {});
|
|
23550
|
+
var IsVoteNodeEnum = /* @__PURE__ */ ((IsVoteNodeEnum2) => {
|
|
23551
|
+
IsVoteNodeEnum2[IsVoteNodeEnum2["Yes"] = 1] = "Yes";
|
|
23552
|
+
IsVoteNodeEnum2[IsVoteNodeEnum2["No"] = 0] = "No";
|
|
23553
|
+
return IsVoteNodeEnum2;
|
|
23554
|
+
})(IsVoteNodeEnum || {});
|
|
23555
|
+
|
|
23446
23556
|
// src/manager/index.ts
|
|
23447
23557
|
var MyxClient = class {
|
|
23448
23558
|
/**
|
|
@@ -23520,6 +23630,13 @@ var MyxClient = class {
|
|
|
23520
23630
|
};
|
|
23521
23631
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23522
23632
|
0 && (module.exports = {
|
|
23633
|
+
AppealCaseTypeEnum,
|
|
23634
|
+
AppealClaimStatusEnum,
|
|
23635
|
+
AppealNodeStateEnum,
|
|
23636
|
+
AppealNodeVotedStateEnum,
|
|
23637
|
+
AppealReconsiderationType,
|
|
23638
|
+
AppealStage,
|
|
23639
|
+
AppealType,
|
|
23523
23640
|
COMMON_LP_AMOUNT_DECIMALS,
|
|
23524
23641
|
COMMON_PRICE_DECIMALS,
|
|
23525
23642
|
ChainId,
|
|
@@ -23530,11 +23647,13 @@ var MyxClient = class {
|
|
|
23530
23647
|
ExecTypeEnum,
|
|
23531
23648
|
ForwarderGetStatus,
|
|
23532
23649
|
HttpKlineIntervalEnum,
|
|
23650
|
+
IsVoteNodeEnum,
|
|
23533
23651
|
MarketCapType,
|
|
23534
23652
|
MarketPoolState,
|
|
23535
23653
|
MarketType,
|
|
23536
23654
|
MxSDK,
|
|
23537
23655
|
MyxClient,
|
|
23656
|
+
NodeTypeEnum,
|
|
23538
23657
|
OperationEnum,
|
|
23539
23658
|
OperationType,
|
|
23540
23659
|
OracleType,
|
|
@@ -23549,6 +23668,7 @@ var MyxClient = class {
|
|
|
23549
23668
|
TradeFlowTypeEnum,
|
|
23550
23669
|
TriggerType,
|
|
23551
23670
|
TriggerTypeEnum,
|
|
23671
|
+
VoteTypeEnum,
|
|
23552
23672
|
approve,
|
|
23553
23673
|
base,
|
|
23554
23674
|
bigintAmountSlipperCalculator,
|
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.8",
|
|
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
|
*/
|
|
@@ -23367,6 +23400,73 @@ var Referrals = class extends BaseMyxClient {
|
|
|
23367
23400
|
}
|
|
23368
23401
|
};
|
|
23369
23402
|
|
|
23403
|
+
// src/manager/api/appeal-type.ts
|
|
23404
|
+
var AppealType = /* @__PURE__ */ ((AppealType2) => {
|
|
23405
|
+
AppealType2[AppealType2["UnderReview"] = 1] = "UnderReview";
|
|
23406
|
+
AppealType2[AppealType2["InitialVote"] = 2] = "InitialVote";
|
|
23407
|
+
AppealType2[AppealType2["PublicNotice"] = 3] = "PublicNotice";
|
|
23408
|
+
AppealType2[AppealType2["UnderReconsideration"] = 4] = "UnderReconsideration";
|
|
23409
|
+
AppealType2[AppealType2["Won"] = 5] = "Won";
|
|
23410
|
+
AppealType2[AppealType2["Failed"] = 6] = "Failed";
|
|
23411
|
+
AppealType2[AppealType2["PlatformRuling"] = 7] = "PlatformRuling";
|
|
23412
|
+
AppealType2[AppealType2["PlatformRevoked"] = 8] = "PlatformRevoked";
|
|
23413
|
+
return AppealType2;
|
|
23414
|
+
})(AppealType || {});
|
|
23415
|
+
var AppealReconsiderationType = /* @__PURE__ */ ((AppealReconsiderationType2) => {
|
|
23416
|
+
AppealReconsiderationType2[AppealReconsiderationType2["InitialVoting"] = 1] = "InitialVoting";
|
|
23417
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PublicNotice"] = 2] = "PublicNotice";
|
|
23418
|
+
AppealReconsiderationType2[AppealReconsiderationType2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23419
|
+
AppealReconsiderationType2[AppealReconsiderationType2["Won"] = 4] = "Won";
|
|
23420
|
+
AppealReconsiderationType2[AppealReconsiderationType2["Failed"] = 5] = "Failed";
|
|
23421
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRuling"] = 6] = "PlatformRuling";
|
|
23422
|
+
AppealReconsiderationType2[AppealReconsiderationType2["PlatformRevoked"] = 7] = "PlatformRevoked";
|
|
23423
|
+
AppealReconsiderationType2[AppealReconsiderationType2["ReconsiderationVoting"] = 8] = "ReconsiderationVoting";
|
|
23424
|
+
return AppealReconsiderationType2;
|
|
23425
|
+
})(AppealReconsiderationType || {});
|
|
23426
|
+
var AppealStage = /* @__PURE__ */ ((AppealStage2) => {
|
|
23427
|
+
AppealStage2[AppealStage2["UnderReview"] = 1] = "UnderReview";
|
|
23428
|
+
AppealStage2[AppealStage2["PublicNotice"] = 2] = "PublicNotice";
|
|
23429
|
+
AppealStage2[AppealStage2["UnderReconsideration"] = 3] = "UnderReconsideration";
|
|
23430
|
+
AppealStage2[AppealStage2["Completed"] = 4] = "Completed";
|
|
23431
|
+
return AppealStage2;
|
|
23432
|
+
})(AppealStage || {});
|
|
23433
|
+
var NodeTypeEnum = /* @__PURE__ */ ((NodeTypeEnum2) => {
|
|
23434
|
+
NodeTypeEnum2[NodeTypeEnum2["ElectionNode"] = 0] = "ElectionNode";
|
|
23435
|
+
NodeTypeEnum2[NodeTypeEnum2["OfficialNode"] = 1] = "OfficialNode";
|
|
23436
|
+
return NodeTypeEnum2;
|
|
23437
|
+
})(NodeTypeEnum || {});
|
|
23438
|
+
var VoteTypeEnum = /* @__PURE__ */ ((VoteTypeEnum2) => {
|
|
23439
|
+
VoteTypeEnum2[VoteTypeEnum2["Reject"] = 0] = "Reject";
|
|
23440
|
+
VoteTypeEnum2[VoteTypeEnum2["Support"] = 1] = "Support";
|
|
23441
|
+
return VoteTypeEnum2;
|
|
23442
|
+
})(VoteTypeEnum || {});
|
|
23443
|
+
var AppealClaimStatusEnum = /* @__PURE__ */ ((AppealClaimStatusEnum2) => {
|
|
23444
|
+
AppealClaimStatusEnum2[AppealClaimStatusEnum2["UnClaimed"] = 0] = "UnClaimed";
|
|
23445
|
+
AppealClaimStatusEnum2[AppealClaimStatusEnum2["Claimed"] = 1] = "Claimed";
|
|
23446
|
+
return AppealClaimStatusEnum2;
|
|
23447
|
+
})(AppealClaimStatusEnum || {});
|
|
23448
|
+
var AppealNodeVotedStateEnum = /* @__PURE__ */ ((AppealNodeVotedStateEnum2) => {
|
|
23449
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["NotVoted"] = 0] = "NotVoted";
|
|
23450
|
+
AppealNodeVotedStateEnum2[AppealNodeVotedStateEnum2["Voted"] = 1] = "Voted";
|
|
23451
|
+
return AppealNodeVotedStateEnum2;
|
|
23452
|
+
})(AppealNodeVotedStateEnum || {});
|
|
23453
|
+
var AppealCaseTypeEnum = /* @__PURE__ */ ((AppealCaseTypeEnum2) => {
|
|
23454
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Appeal"] = 1] = "Appeal";
|
|
23455
|
+
AppealCaseTypeEnum2[AppealCaseTypeEnum2["Reconsideration"] = 2] = "Reconsideration";
|
|
23456
|
+
return AppealCaseTypeEnum2;
|
|
23457
|
+
})(AppealCaseTypeEnum || {});
|
|
23458
|
+
var AppealNodeStateEnum = /* @__PURE__ */ ((AppealNodeStateEnum2) => {
|
|
23459
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["NoVote"] = 0] = "NoVote";
|
|
23460
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Supported"] = 1] = "Supported";
|
|
23461
|
+
AppealNodeStateEnum2[AppealNodeStateEnum2["Rejected"] = 2] = "Rejected";
|
|
23462
|
+
return AppealNodeStateEnum2;
|
|
23463
|
+
})(AppealNodeStateEnum || {});
|
|
23464
|
+
var IsVoteNodeEnum = /* @__PURE__ */ ((IsVoteNodeEnum2) => {
|
|
23465
|
+
IsVoteNodeEnum2[IsVoteNodeEnum2["Yes"] = 1] = "Yes";
|
|
23466
|
+
IsVoteNodeEnum2[IsVoteNodeEnum2["No"] = 0] = "No";
|
|
23467
|
+
return IsVoteNodeEnum2;
|
|
23468
|
+
})(IsVoteNodeEnum || {});
|
|
23469
|
+
|
|
23370
23470
|
// src/manager/index.ts
|
|
23371
23471
|
var MyxClient = class {
|
|
23372
23472
|
/**
|
|
@@ -23443,6 +23543,13 @@ var MyxClient = class {
|
|
|
23443
23543
|
}
|
|
23444
23544
|
};
|
|
23445
23545
|
export {
|
|
23546
|
+
AppealCaseTypeEnum,
|
|
23547
|
+
AppealClaimStatusEnum,
|
|
23548
|
+
AppealNodeStateEnum,
|
|
23549
|
+
AppealNodeVotedStateEnum,
|
|
23550
|
+
AppealReconsiderationType,
|
|
23551
|
+
AppealStage,
|
|
23552
|
+
AppealType,
|
|
23446
23553
|
COMMON_LP_AMOUNT_DECIMALS,
|
|
23447
23554
|
COMMON_PRICE_DECIMALS,
|
|
23448
23555
|
ChainId,
|
|
@@ -23453,11 +23560,13 @@ export {
|
|
|
23453
23560
|
ExecTypeEnum,
|
|
23454
23561
|
ForwarderGetStatus,
|
|
23455
23562
|
HttpKlineIntervalEnum,
|
|
23563
|
+
IsVoteNodeEnum,
|
|
23456
23564
|
MarketCapType,
|
|
23457
23565
|
MarketPoolState,
|
|
23458
23566
|
MarketType,
|
|
23459
23567
|
MxSDK,
|
|
23460
23568
|
MyxClient,
|
|
23569
|
+
NodeTypeEnum,
|
|
23461
23570
|
OperationEnum,
|
|
23462
23571
|
OperationType,
|
|
23463
23572
|
OracleType,
|
|
@@ -23472,6 +23581,7 @@ export {
|
|
|
23472
23581
|
TradeFlowTypeEnum,
|
|
23473
23582
|
TriggerType2 as TriggerType,
|
|
23474
23583
|
TriggerTypeEnum,
|
|
23584
|
+
VoteTypeEnum,
|
|
23475
23585
|
approve,
|
|
23476
23586
|
base_exports as base,
|
|
23477
23587
|
bigintAmountSlipperCalculator,
|