@rabby-wallet/rabby-api 0.9.37-beta.0 → 0.9.37
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.ts +8 -12
- package/dist/index.js +13 -4
- package/dist/types.d.ts +8 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosAdapter, AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { RateLimitedAxiosInstance } from 'axios-rate-limit';
|
|
3
3
|
import { InitOptions, RabbyApiPlugin } from './plugins/intf';
|
|
4
|
-
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem,
|
|
4
|
+
import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod, GasAccountInfo, TokenEntityDetail, TokenItemWithEntity, ProjectItem, CopyTradeTokenListResponse, CopyTradeRecentBuyListResponse, CopyTradePnlListResponse, AppChainListResponse, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken, DefaultRPCRes, TokenDetailWithPriceCurve, GiftEligibilityItem, UserFeedbackItem, PerpTopToken } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1272,16 +1272,12 @@ export declare class OpenApiService {
|
|
|
1272
1272
|
}>;
|
|
1273
1273
|
getHotTokenList: () => Promise<TokenDetailWithPriceCurve[]>;
|
|
1274
1274
|
getTokensDetailByUuids: (uuids: string[]) => Promise<TokenDetailWithPriceCurve[]>;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}) => Promise<
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
getTokenMarketInfo: (params: {
|
|
1283
|
-
chain_id: string;
|
|
1284
|
-
token_id: string;
|
|
1285
|
-
}) => Promise<TokenMarketInfo>;
|
|
1275
|
+
postUserFeedback: (data: {
|
|
1276
|
+
title: string;
|
|
1277
|
+
image_url_list: string[];
|
|
1278
|
+
content: string;
|
|
1279
|
+
}) => Promise<UserFeedbackItem>;
|
|
1280
|
+
getUserFeedback: (id: string) => Promise<UserFeedbackItem>;
|
|
1281
|
+
getUserFeedbackList: (id: string | string[]) => Promise<UserFeedbackItem[]>;
|
|
1286
1282
|
}
|
|
1287
1283
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1645,12 +1645,21 @@ export class OpenApiService {
|
|
|
1645
1645
|
});
|
|
1646
1646
|
return data;
|
|
1647
1647
|
});
|
|
1648
|
-
this.
|
|
1649
|
-
const { data } = yield this.request.
|
|
1648
|
+
this.postUserFeedback = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
1649
|
+
const { data: response } = yield this.request.post('/v1/feedback/app', data);
|
|
1650
|
+
return response;
|
|
1651
|
+
});
|
|
1652
|
+
this.getUserFeedback = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
1653
|
+
const { data } = yield this.request.get('/v1/feedback/app', {
|
|
1654
|
+
params: { id },
|
|
1655
|
+
});
|
|
1650
1656
|
return data;
|
|
1651
1657
|
});
|
|
1652
|
-
this.
|
|
1653
|
-
const
|
|
1658
|
+
this.getUserFeedbackList = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
1659
|
+
const ids = Array.isArray(id) ? id : [id];
|
|
1660
|
+
const { data } = yield this.request.post('/v1/feedback/app/list', {
|
|
1661
|
+
ids,
|
|
1662
|
+
});
|
|
1654
1663
|
return data;
|
|
1655
1664
|
});
|
|
1656
1665
|
if (store instanceof Promise) {
|
package/dist/types.d.ts
CHANGED
|
@@ -1640,32 +1640,14 @@ export declare type GiftEligibilityItem = {
|
|
|
1640
1640
|
has_eligibility: boolean;
|
|
1641
1641
|
can_claimed_usd_value: number;
|
|
1642
1642
|
};
|
|
1643
|
-
export declare type
|
|
1644
|
-
time_at: number,
|
|
1645
|
-
open: number,
|
|
1646
|
-
high: number,
|
|
1647
|
-
low: number,
|
|
1648
|
-
close: number,
|
|
1649
|
-
volume_amount: number,
|
|
1650
|
-
volume_usd_value: number
|
|
1651
|
-
];
|
|
1652
|
-
export declare type TokenMarketInfo = {
|
|
1643
|
+
export declare type UserFeedbackItem = {
|
|
1653
1644
|
id: string;
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
volume_amount_24h: number | null;
|
|
1662
|
-
volume_usd_value_24h: number | null;
|
|
1663
|
-
txns_24h: number | null;
|
|
1664
|
-
holder_count: number | null;
|
|
1665
|
-
max_supply: number | null;
|
|
1666
|
-
};
|
|
1667
|
-
name: string;
|
|
1668
|
-
symbol: string;
|
|
1669
|
-
logo_url: string;
|
|
1645
|
+
title: string;
|
|
1646
|
+
content: string;
|
|
1647
|
+
image_url_list: string[];
|
|
1648
|
+
status: 'pending' | 'complete' | 'closed';
|
|
1649
|
+
create_at: number;
|
|
1650
|
+
comment: string | null;
|
|
1651
|
+
comment_at: number | null;
|
|
1670
1652
|
};
|
|
1671
1653
|
export {};
|