@rabby-wallet/rabby-api 0.9.26-beta.10 → 0.9.26-beta.11
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 +5 -1
- package/dist/index.js +6 -0
- package/dist/types.d.ts +3 -0
- 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, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2 } from './types';
|
|
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, CopyTradeTokenListV2Response, CopyTradeRecentBuyListV2Response, CopyTradeTokenItemV2, CopyTradeSameToken } from './types';
|
|
5
5
|
interface OpenApiStore {
|
|
6
6
|
host: string;
|
|
7
7
|
testnetHost?: string;
|
|
@@ -1129,6 +1129,10 @@ export declare class OpenApiService {
|
|
|
1129
1129
|
chain_id: string;
|
|
1130
1130
|
token_id: string;
|
|
1131
1131
|
}) => Promise<CopyTradeTokenItemV2>;
|
|
1132
|
+
getCopyTradingSameName: (params: {
|
|
1133
|
+
chain_id: string;
|
|
1134
|
+
token_id: string;
|
|
1135
|
+
}) => Promise<CopyTradeSameToken[]>;
|
|
1132
1136
|
getCopyTradingPnlList: (params: {
|
|
1133
1137
|
user_addr: string;
|
|
1134
1138
|
}) => Promise<CopyTradePnlListResponse>;
|
package/dist/index.js
CHANGED
|
@@ -1494,6 +1494,12 @@ export class OpenApiService {
|
|
|
1494
1494
|
});
|
|
1495
1495
|
return data;
|
|
1496
1496
|
});
|
|
1497
|
+
this.getCopyTradingSameName = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1498
|
+
const { data } = yield this.request.get('/v1/token/same_name', {
|
|
1499
|
+
params,
|
|
1500
|
+
});
|
|
1501
|
+
return data;
|
|
1502
|
+
});
|
|
1497
1503
|
this.getCopyTradingPnlList = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1498
1504
|
const { data } = yield this.request.get('/v1/copytrading/smart_money/pnl/list', {
|
|
1499
1505
|
params,
|
package/dist/types.d.ts
CHANGED
|
@@ -102,6 +102,9 @@ export interface CopyTradeTokenListV2Response {
|
|
|
102
102
|
next_cursor: string;
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
+
export interface CopyTradeSameToken extends TokenItem {
|
|
106
|
+
liquidity: number;
|
|
107
|
+
}
|
|
105
108
|
export interface CopyTradeRecentBuyItem {
|
|
106
109
|
id: string;
|
|
107
110
|
user_addr: string;
|