@rabby-wallet/rabby-api 0.9.5 → 0.9.6-8.alpha.2

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/types.d.ts CHANGED
@@ -1,4 +1,14 @@
1
1
  import { CHAINS_ENUM } from '@debank/common';
2
+ export interface WalletVersionInfo {
3
+ id: string;
4
+ level: number;
5
+ changelog: string;
6
+ changelog_cn: string;
7
+ }
8
+ export interface WalletVersionInfoResponse {
9
+ version: WalletVersionInfo | null;
10
+ latest_version: WalletVersionInfo | null;
11
+ }
2
12
  export interface Chain {
3
13
  id: number;
4
14
  name: string;
@@ -73,6 +83,86 @@ export interface Tx {
73
83
  s?: string;
74
84
  v?: string;
75
85
  }
86
+ export interface CopyTradeTokenItem extends TokenItem {
87
+ fdv: number | null;
88
+ buy_amount_24h: number;
89
+ buy_usd_value_24h: number;
90
+ price_curve_24h: {
91
+ time_at: number;
92
+ price: number;
93
+ }[];
94
+ create_at: number;
95
+ }
96
+ export interface CopyTradeTokenListResponse {
97
+ token_list: CopyTradeTokenItem[];
98
+ }
99
+ export interface CopyTradeTokenItemV2 extends CopyTradeTokenItem {
100
+ buy_address_count: number;
101
+ token_create_at: number;
102
+ liquidity: number;
103
+ buy_amount: number;
104
+ buy_usd_value: number;
105
+ pnl_usd_value: number;
106
+ price_change: number;
107
+ }
108
+ export interface CopyTradeTokenListV2Response {
109
+ token_list: CopyTradeTokenItemV2[];
110
+ pagination: {
111
+ limit: number;
112
+ has_next: boolean;
113
+ next_cursor: string;
114
+ };
115
+ }
116
+ export interface CopyTradeSameToken extends TokenItem {
117
+ liquidity: number;
118
+ }
119
+ export interface CopyTradeRecentBuyItem {
120
+ id: string;
121
+ user_addr: string;
122
+ user_addr_pnl: {
123
+ id: string;
124
+ profit_usd_value: number;
125
+ };
126
+ chain_id: string;
127
+ token_id: string;
128
+ token_amount: number;
129
+ action: string;
130
+ buy_usd_value: number;
131
+ create_at: number;
132
+ }
133
+ export interface CopyTradeRecentBuyListResponse {
134
+ recent_buy_list: CopyTradeRecentBuyItem[];
135
+ total: number;
136
+ }
137
+ export interface CopyTradeRecentBuyItemV2 {
138
+ user_addr: string;
139
+ current_balance: number;
140
+ buy_usd_value: number;
141
+ buy_amount: number;
142
+ buy_price: number;
143
+ sell_usd_value: number;
144
+ sell_amount: number;
145
+ sell_price: number;
146
+ pnl_usd_value: number;
147
+ realized_pnl_usd_value: number;
148
+ unrealized_pnl_usd_value: number;
149
+ last_buy_at: string;
150
+ }
151
+ export interface CopyTradeRecentBuyListV2Response {
152
+ recent_buy_list: CopyTradeRecentBuyItemV2[];
153
+ pagination: {
154
+ limit: number;
155
+ has_next: boolean;
156
+ next_cursor: string;
157
+ };
158
+ }
159
+ export interface CopyTradePnlItem extends TokenItem {
160
+ profit_usd_value: number;
161
+ protocol_id?: string;
162
+ }
163
+ export interface CopyTradePnlListResponse {
164
+ pnl_list: CopyTradePnlItem[];
165
+ }
76
166
  export interface Eip1559Tx {
77
167
  chainId: number;
78
168
  data: string;
@@ -93,6 +183,32 @@ export interface TotalBalanceResponse {
93
183
  error_code?: number;
94
184
  err_chain_ids?: string[];
95
185
  }
186
+ export interface TokenEntityDetail {
187
+ id: string;
188
+ chain: string;
189
+ token_id: string;
190
+ symbol: string;
191
+ domain_id: string;
192
+ fdv: number;
193
+ is_domain_verified: boolean;
194
+ relate_domain_ids: string[];
195
+ cmc_id: string;
196
+ coingecko_id: string;
197
+ bridge_ids: string[];
198
+ origin_token?: TokenItem;
199
+ tag_ids?: string[];
200
+ listed_sites: {
201
+ name: string;
202
+ url: string;
203
+ logo_url: string;
204
+ }[];
205
+ cex_list: {
206
+ id: string;
207
+ site_url: string;
208
+ name: string;
209
+ logo_url: string;
210
+ }[];
211
+ }
96
212
  export interface TokenItem {
97
213
  content_type?: 'image' | 'image_url' | 'video_url' | 'audio_url' | undefined;
98
214
  content?: string | undefined;
@@ -102,8 +218,9 @@ export interface TokenItem {
102
218
  decimals: number;
103
219
  display_symbol: string | null;
104
220
  id: string;
105
- is_core: boolean;
106
- is_verified: boolean;
221
+ is_core: boolean | null;
222
+ credit_score?: number;
223
+ is_verified: boolean | null;
107
224
  is_wallet: boolean;
108
225
  is_scam?: boolean;
109
226
  is_infinity?: boolean;
@@ -117,9 +234,25 @@ export interface TokenItem {
117
234
  usd_value?: number;
118
235
  raw_amount?: string;
119
236
  raw_amount_hex_str?: string;
237
+ protocol_id?: string;
120
238
  price_24h_change?: number | null;
121
239
  low_credit_score?: boolean;
240
+ cex_ids?: string[];
241
+ fdv?: number | null;
242
+ support_market_data?: boolean;
243
+ launchpad?: TokenMarketTokenRelatedItem | null;
244
+ asset?: TokenMarketTokenRelatedItem | null;
245
+ market_status?: string;
122
246
  }
247
+ export interface TokenItemWithEntity extends TokenItem {
248
+ identity?: TokenEntityDetail;
249
+ }
250
+ export interface TokenPriceListItem {
251
+ price: number;
252
+ price_24h_change?: number | null;
253
+ price_update_at?: number | null;
254
+ }
255
+ export declare type TokenPriceListResponse = Record<string, TokenPriceListItem>;
123
256
  export interface TransferingNFTItem {
124
257
  chain: string;
125
258
  collection: {
@@ -265,6 +398,8 @@ export interface NFTItem {
265
398
  usd_price?: number;
266
399
  amount: number;
267
400
  collection_id?: string;
401
+ collection_name?: string;
402
+ is_core?: boolean;
268
403
  pay_token?: {
269
404
  id: string;
270
405
  name: string;
@@ -296,6 +431,18 @@ export interface Collection {
296
431
  create_at: number;
297
432
  floor_price: number;
298
433
  is_scam: boolean;
434
+ opensea_floor_price?: {
435
+ price: number;
436
+ token: {
437
+ id: string;
438
+ symbol: string;
439
+ decimals: number;
440
+ price: number;
441
+ };
442
+ };
443
+ is_tradable?: boolean;
444
+ is_erc721?: boolean;
445
+ is_erc1155?: boolean;
299
446
  }
300
447
  export interface CollectionList {
301
448
  id: string;
@@ -312,6 +459,8 @@ export interface CollectionList {
312
459
  floor_price: number;
313
460
  nft_list: NFTItem[];
314
461
  native_token: TokenItem;
462
+ is_hidden?: boolean;
463
+ is_tradable?: boolean;
315
464
  }
316
465
  export interface TxDisplayItem extends TxHistoryItem {
317
466
  projectDict: TxHistoryResult['project_dict'];
@@ -330,17 +479,20 @@ export interface TxHistoryItem {
330
479
  amount: number;
331
480
  from_addr: string;
332
481
  token_id: string;
482
+ price?: number;
333
483
  }[];
334
484
  sends: {
335
485
  amount: number;
336
486
  to_addr: string;
337
487
  token_id: string;
488
+ price?: number;
338
489
  }[];
339
490
  time_at: number;
340
491
  token_approve: {
341
492
  spender: string;
342
493
  token_id: string;
343
494
  value: number;
495
+ price?: number;
344
496
  } | null;
345
497
  tx: {
346
498
  eth_gas_fee: number;
@@ -370,6 +522,7 @@ export interface TxHistoryResult {
370
522
  }
371
523
  export interface TxAllHistoryResult extends Omit<TxHistoryResult, 'token_dict'> {
372
524
  token_uuid_dict: Record<string, TokenItem>;
525
+ project_dict: TxHistoryResult['project_dict'];
373
526
  }
374
527
  export interface GasResult {
375
528
  estimated_gas_cost_usd_value: number;
@@ -667,6 +820,9 @@ export interface PortfolioItemDetail {
667
820
  usd_value?: number;
668
821
  daily_unlock_amount: number;
669
822
  pnl_usd_value: number;
823
+ amount?: number;
824
+ price?: number;
825
+ name?: string;
670
826
  }
671
827
  export interface PortfolioItem {
672
828
  asset_token_list: TokenItem[];
@@ -686,6 +842,20 @@ export interface PortfolioItem {
686
842
  };
687
843
  pool: PoolItem;
688
844
  position_index: string;
845
+ withdraw_actions?: WithdrawAction[];
846
+ }
847
+ export interface WithdrawAction {
848
+ type: 'withdraw' | 'claim' | 'queue';
849
+ contract_id: string;
850
+ func: string;
851
+ params?: string[];
852
+ str_params?: string[];
853
+ need_approve: {
854
+ token_id?: string;
855
+ to?: string;
856
+ raw_amount?: number;
857
+ str_raw_amount?: string;
858
+ };
689
859
  }
690
860
  export interface Protocol {
691
861
  chain: string;
@@ -822,7 +992,9 @@ export interface AddrDescResponse {
822
992
  born_at: number;
823
993
  is_danger: boolean | null;
824
994
  is_spam: boolean | null;
995
+ is_scam: boolean | null;
825
996
  name: string;
997
+ id: string;
826
998
  };
827
999
  }
828
1000
  export interface SendAction {
@@ -915,11 +1087,14 @@ export interface PushMultiSigAction {
915
1087
  multisig_id: string;
916
1088
  }
917
1089
  export declare type RevokeNFTCollectionAction = ApproveNFTCollectionAction;
1090
+ export declare type MultiAction = TransactionAction[];
1091
+ export declare type TransactionActionDataItem = SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | MultiAction | null;
1092
+ export interface TransactionAction {
1093
+ type: string;
1094
+ data: TransactionActionDataItem;
1095
+ }
918
1096
  export interface ParseTxResponse {
919
- action: {
920
- type: string;
921
- data: SwapAction | ApproveAction | SendAction | SendNFTAction | ApproveNFTAction | RevokeNFTAction | ApproveNFTCollectionAction | RevokeNFTCollectionAction | RevokeTokenApproveAction | WrapTokenAction | UnWrapTokenAction | PushMultiSigAction | CrossSwapAction | CrossTokenAction | RevokePermit2Action | SwapOrderAction | TransferOwnerAction | MultiSwapAction | SwapLimitPay | null;
922
- };
1097
+ action: TransactionAction;
923
1098
  contract_call?: {
924
1099
  func: string;
925
1100
  contract: {
@@ -937,7 +1112,7 @@ export interface CollectionWithFloorPrice {
937
1112
  name: string;
938
1113
  floor_price: number;
939
1114
  }
940
- export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address' | 'sell_nft_list_order' | 'permit2_approve_token_list' | 'create_cobo_safe' | 'submit_safe_role_modification' | 'submit_delegated_address_modification' | 'submit_token_approval_modification' | 'send_token' | 'permit1_revoke_token' | 'swap_order' | 'approve_nft';
1115
+ export declare type TypedDataActionName = 'permit1_approve_token' | 'swap_token_order' | 'permit2_approve_token' | 'sell_nft_order' | 'sign_multisig' | 'buy_nft_order' | 'create_key' | 'verify_address' | 'sell_nft_list_order' | 'permit2_approve_token_list' | 'create_cobo_safe' | 'submit_safe_role_modification' | 'submit_delegated_address_modification' | 'submit_token_approval_modification' | 'send_token' | 'permit1_revoke_token' | 'swap_order' | 'approve_nft' | 'multi_actions';
941
1116
  export interface BuyNFTOrderAction {
942
1117
  expire_at: string;
943
1118
  pay_token: TokenItem;
@@ -1021,12 +1196,14 @@ export interface SubmitTokenApprovalModificationAction {
1021
1196
  logo_url: string;
1022
1197
  };
1023
1198
  }
1199
+ export declare type TypeDataActionDataItem = SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction | MultiAction;
1200
+ export interface TypeDataActionItem {
1201
+ type: TypedDataActionName;
1202
+ expire_at?: number;
1203
+ data: TypeDataActionDataItem;
1204
+ }
1024
1205
  export interface ParseTypedDataResponse {
1025
- action: {
1026
- type: TypedDataActionName;
1027
- expire_at?: number;
1028
- data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction;
1029
- } | null;
1206
+ action: TypeDataActionItem | null;
1030
1207
  log_id: string;
1031
1208
  }
1032
1209
  export declare type TextActionName = 'create_key' | 'verify_address';
@@ -1178,6 +1355,8 @@ export interface SupportedChain {
1178
1355
  eip_1559: boolean;
1179
1356
  is_disabled: boolean;
1180
1357
  explorer_host: string;
1358
+ block_interval: number;
1359
+ severity?: number;
1181
1360
  }
1182
1361
  export interface ChainListItem {
1183
1362
  chain_id: number;
@@ -1190,6 +1369,7 @@ export interface ChainListItem {
1190
1369
  };
1191
1370
  explorer: string | null;
1192
1371
  rpc: null | string;
1372
+ rpc_list?: string[];
1193
1373
  }
1194
1374
  export interface HistoryCurve {
1195
1375
  create_at: number;
@@ -1306,12 +1486,14 @@ export interface BridgeQuote {
1306
1486
  to: string;
1307
1487
  value: string;
1308
1488
  };
1489
+ quote_key: Record<string, any>;
1309
1490
  }
1310
1491
  export interface BridgeHistory {
1311
1492
  aggregator: Exclude<BridgeAggregator, 'bridge_list'>;
1312
1493
  bridge: BridgeItem;
1313
1494
  from_token: TokenItem;
1314
1495
  to_token: TokenItem;
1496
+ to_actual_token: TokenItem;
1315
1497
  quote: {
1316
1498
  pay_token_amount: number;
1317
1499
  receive_token_amount: number;
@@ -1321,8 +1503,17 @@ export interface BridgeHistory {
1321
1503
  receive_token_amount: number;
1322
1504
  };
1323
1505
  detail_url: string;
1324
- status: 'pending' | 'completed';
1506
+ status: 'pending' | 'completed' | 'failed';
1325
1507
  create_at: number;
1508
+ from_tx: {
1509
+ tx_id: string;
1510
+ chain_id: string;
1511
+ status: 'pending' | 'success' | 'failed';
1512
+ time_at?: number;
1513
+ };
1514
+ to_tx: {
1515
+ tx_id?: string;
1516
+ };
1326
1517
  from_gas: {
1327
1518
  native_token: TokenItem;
1328
1519
  gas_amount: number;
@@ -1361,6 +1552,33 @@ export interface ContractInfo {
1361
1552
  };
1362
1553
  is_phishing: boolean | null;
1363
1554
  }
1555
+ export interface PerpTopToken {
1556
+ id: number;
1557
+ name: string;
1558
+ full_logo_url: string | null;
1559
+ daily_volume: number;
1560
+ dex_id: string;
1561
+ }
1562
+ export interface PerpTopTokenV3 {
1563
+ id: string;
1564
+ token_id: number;
1565
+ name: string;
1566
+ full_logo_url?: string;
1567
+ daily_volume: number;
1568
+ dex_id?: string;
1569
+ category?: string;
1570
+ category_id?: string;
1571
+ display_name?: string;
1572
+ brief?: string;
1573
+ description?: string;
1574
+ }
1575
+ export interface PerpTopTokenCategory {
1576
+ id: string;
1577
+ name: string;
1578
+ priority: number;
1579
+ is_disable: boolean;
1580
+ translations: Record<string, string>;
1581
+ }
1364
1582
  export interface GasAccountCheckResult {
1365
1583
  gas_account_cost: {
1366
1584
  total_cost: number;
@@ -1371,6 +1589,7 @@ export interface GasAccountCheckResult {
1371
1589
  is_gas_account: boolean;
1372
1590
  balance_is_enough: boolean;
1373
1591
  chain_not_support: boolean;
1592
+ err_msg: string;
1374
1593
  }
1375
1594
  export interface ParseCommonResponse {
1376
1595
  input_type: 'typed_data' | 'text' | 'tx';
@@ -1381,4 +1600,1319 @@ export interface ParseCommonResponse {
1381
1600
  contract_call_data: ParseTxResponse['contract_call'] | null;
1382
1601
  pre_exec?: PreExecResult['pre_exec'];
1383
1602
  }
1603
+ export interface RechargeChainItem {
1604
+ chain_id: string;
1605
+ withdraw_limit: number;
1606
+ withdraw_fee: number;
1607
+ l1_balance: number;
1608
+ }
1609
+ export interface WithdrawListAddressItem {
1610
+ recharge_addr: string;
1611
+ total_withdraw_limit: number;
1612
+ recharge_chain_list: RechargeChainItem[];
1613
+ }
1614
+ export interface BuyCountryItem {
1615
+ id: string;
1616
+ name: string;
1617
+ image_url: string;
1618
+ regions: null | {
1619
+ regionCode: string;
1620
+ name: string;
1621
+ };
1622
+ }
1623
+ export interface BuyServiceProvider {
1624
+ id: string;
1625
+ name: string;
1626
+ website_url: string;
1627
+ customer_support_url: string;
1628
+ image_url: string;
1629
+ logo_url: string;
1630
+ }
1631
+ export interface BuyQuoteItem {
1632
+ service_provider: BuyServiceProvider;
1633
+ token_amount: number;
1634
+ payment_method_type: string;
1635
+ }
1636
+ export interface BuyHistoryItem {
1637
+ id: string;
1638
+ user_addr: string;
1639
+ status: string;
1640
+ create_at: number;
1641
+ service_provider: BuyServiceProvider;
1642
+ service_provider_url: null | string;
1643
+ pay_usd_amount: number;
1644
+ pay_currency_code: string;
1645
+ payment_type: string;
1646
+ receive_chain_id: string;
1647
+ receive_tx_id: string;
1648
+ receive_token_id: string;
1649
+ receive_amount: number;
1650
+ receive_token: TokenItem;
1651
+ }
1652
+ export interface BuyHistoryList {
1653
+ pagination: {
1654
+ start: number;
1655
+ limit: number;
1656
+ total: number;
1657
+ };
1658
+ histories: BuyHistoryItem[];
1659
+ }
1660
+ export interface BuyPaymentMethod {
1661
+ id: string;
1662
+ name: string;
1663
+ type: string;
1664
+ logo_url: string;
1665
+ }
1666
+ export interface GasAccountInfo {
1667
+ id: string;
1668
+ balance: number;
1669
+ create_at: number;
1670
+ nonce: number;
1671
+ uuid: string;
1672
+ has_iap_order: boolean;
1673
+ no_register: boolean;
1674
+ non_withdrawable_balance: number | undefined;
1675
+ withdrawable_balance: number | undefined;
1676
+ }
1677
+ export interface AppChainItem {
1678
+ id: string;
1679
+ name: string;
1680
+ site_url: string;
1681
+ logo_url: string;
1682
+ is_support_portfolio: boolean;
1683
+ is_visible: boolean;
1684
+ portfolio_item_list: PortfolioItem[];
1685
+ }
1686
+ export interface AppChainListResponse {
1687
+ apps: AppChainItem[];
1688
+ error_apps: {
1689
+ create_at: number;
1690
+ id: string;
1691
+ is_support_portfolio: boolean;
1692
+ is_visible: boolean;
1693
+ logo_url: string;
1694
+ name: string;
1695
+ site_url: string;
1696
+ update_at: number;
1697
+ }[];
1698
+ }
1699
+ export declare type DefaultRPCRes = {
1700
+ message: string;
1701
+ status: string;
1702
+ rpcs: RPCDefaultItem[];
1703
+ };
1704
+ declare type RPCDefaultItem = {
1705
+ chainId: string;
1706
+ rpcUrl: string[];
1707
+ txPushToRPC: boolean;
1708
+ };
1709
+ export interface TokenDetailWithPriceCurve extends TokenItemWithEntity {
1710
+ price_curve_24h: {
1711
+ time_at: number;
1712
+ price: number;
1713
+ }[];
1714
+ }
1715
+ export declare type GiftEligibilityItem = {
1716
+ id?: string;
1717
+ has_eligibility: boolean;
1718
+ can_claimed_usd_value: number;
1719
+ };
1720
+ export declare type KlineDataItem = [
1721
+ time_at: number,
1722
+ open: number,
1723
+ high: number,
1724
+ low: number,
1725
+ close: number,
1726
+ volume_amount: number,
1727
+ volume_usd_value: number
1728
+ ];
1729
+ export declare type TokenMarketInfo = {
1730
+ market: {
1731
+ volume_amount_24h: number | null;
1732
+ volume_usd_value_24h: number | null;
1733
+ txns_24h: number | null;
1734
+ };
1735
+ };
1736
+ export declare type TokenHolderInfo = {
1737
+ holder_count: number | null;
1738
+ };
1739
+ export declare type TokenSupplyInfo = {
1740
+ market_cap_usd_value: number | null;
1741
+ total_supply: number | null;
1742
+ circulating_supply: number | null;
1743
+ max_supply: number | null;
1744
+ };
1745
+ export declare type UserFeedbackItem = {
1746
+ id: string;
1747
+ title: string;
1748
+ content: string;
1749
+ image_url_list: string[];
1750
+ status: 'pending' | 'complete' | 'closed';
1751
+ create_at: number;
1752
+ comment: string | null;
1753
+ comment_at: number | null;
1754
+ extra?: any | null;
1755
+ };
1756
+ export declare type ClientFeedbackSource = 'app-ios' | 'app-android' | 'app' | 'extension' | 'desktop' | '';
1757
+ export declare type ClientFeedbackStatus = 'pending' | 'replied' | 'closed';
1758
+ export declare type ClientFeedbackSender = 'user' | 'ops';
1759
+ export declare type ClientFeedbackExtra = Record<string, any>;
1760
+ export interface ClientFeedbackConversation {
1761
+ id: string;
1762
+ source: ClientFeedbackSource;
1763
+ status: ClientFeedbackStatus;
1764
+ last_message_at: number;
1765
+ client_read_at: number | null;
1766
+ comment_user_id: number | null;
1767
+ create_at: number;
1768
+ extra: ClientFeedbackExtra;
1769
+ }
1770
+ export interface ClientFeedbackMessage {
1771
+ id: string;
1772
+ conversation_id: string;
1773
+ sender: ClientFeedbackSender;
1774
+ ops_user_id: number | null;
1775
+ content: string;
1776
+ image_url_list: string[];
1777
+ video_url_list: string[];
1778
+ source: ClientFeedbackSource;
1779
+ create_at: number;
1780
+ }
1781
+ export interface PostClientFeedbackMessageParams {
1782
+ device_id: string;
1783
+ content?: string;
1784
+ image_url_list?: string[];
1785
+ video_url_list?: string[];
1786
+ extra?: ClientFeedbackExtra;
1787
+ }
1788
+ export interface PostClientFeedbackMessageResponse {
1789
+ conversation: ClientFeedbackConversation;
1790
+ message: ClientFeedbackMessage;
1791
+ }
1792
+ export interface GetClientFeedbackMessagesParams {
1793
+ device_id: string;
1794
+ start?: number;
1795
+ limit?: number;
1796
+ }
1797
+ export interface GetClientFeedbackMessagesResponse {
1798
+ conversation: ClientFeedbackConversation | null;
1799
+ messages: ClientFeedbackMessage[];
1800
+ total_count: number;
1801
+ }
1802
+ export interface GetClientFeedbackUnreadParams {
1803
+ device_id: string;
1804
+ }
1805
+ export interface GetClientFeedbackUnreadResponse {
1806
+ unread_count: number;
1807
+ status: ClientFeedbackStatus | null;
1808
+ }
1809
+ export declare type UploadClientFeedbackParams = FormData;
1810
+ export declare type UploadClientFeedbackResponse = {
1811
+ image_url: string;
1812
+ video_url?: never;
1813
+ } | {
1814
+ image_url?: never;
1815
+ video_url: string;
1816
+ };
1817
+ export declare type CurrencyItem = {
1818
+ symbol: string;
1819
+ code: string;
1820
+ logo_url: string;
1821
+ usd_rate: number;
1822
+ is_prefix: boolean;
1823
+ };
1824
+ export interface PerpBridgeQuote {
1825
+ tx: {
1826
+ chainId: number;
1827
+ data: string;
1828
+ from: string;
1829
+ gas: string;
1830
+ gasPrice: string;
1831
+ nonce: string;
1832
+ to: string;
1833
+ value: string;
1834
+ };
1835
+ bridge_id: string;
1836
+ bridge: BridgeItem | null;
1837
+ to_token_raw_amount: number;
1838
+ to_token_raw_amount_hex_str: string;
1839
+ to_token_amount: number;
1840
+ approve_contract_id: string;
1841
+ protocol_fee: {
1842
+ raw_amount_hex_str: string;
1843
+ usd_value: number;
1844
+ };
1845
+ rabby_fee: {
1846
+ raw_amount_hex_str: string;
1847
+ usd_value: number;
1848
+ };
1849
+ gas_fee: {
1850
+ raw_amount_hex_str: string;
1851
+ usd_value: number;
1852
+ };
1853
+ duration: number;
1854
+ }
1855
+ export interface GasAccountBridgeToken {
1856
+ chain_id: string;
1857
+ token_id: string;
1858
+ }
1859
+ export interface GasAccountBridgeSupportTokenList {
1860
+ wallet_tokens: GasAccountBridgeToken[];
1861
+ hyperliquid_tokens: GasAccountBridgeToken[];
1862
+ }
1863
+ export interface GasAccountBridgeFee {
1864
+ raw_amount_hex_str: string;
1865
+ usd_value: number;
1866
+ }
1867
+ export interface GasAccountBridgeInfo {
1868
+ logo_url: string;
1869
+ }
1870
+ export interface GasAccountBridgeQuote {
1871
+ bridge_id: string;
1872
+ bridge: GasAccountBridgeInfo;
1873
+ to_token_raw_amount: number;
1874
+ to_token_raw_amount_hex_str: string;
1875
+ to_token_amount: number;
1876
+ approve_contract_id: string;
1877
+ protocol_fee: GasAccountBridgeFee;
1878
+ rabby_fee: GasAccountBridgeFee;
1879
+ gas_fee: GasAccountBridgeFee;
1880
+ duration: number;
1881
+ tx: Tx;
1882
+ }
1883
+ export interface GasAccountBridgeCreateResponse {
1884
+ success: boolean;
1885
+ id: string;
1886
+ }
1887
+ export declare type GasAccountRechargeStatus = {
1888
+ status: 'pending' | 'success' | 'failed';
1889
+ type: 'bridge|wallet|iap';
1890
+ };
1891
+ export declare type MarketSummaryItem = {
1892
+ price?: {
1893
+ open?: number;
1894
+ close?: number;
1895
+ change?: number;
1896
+ };
1897
+ summary: {
1898
+ buy?: {
1899
+ count?: number;
1900
+ volume_amount?: number;
1901
+ volume_usd_value?: number;
1902
+ };
1903
+ sell?: {
1904
+ count?: number;
1905
+ volume_amount?: number;
1906
+ volume_usd_value?: number;
1907
+ };
1908
+ totals?: {
1909
+ trading_count?: number;
1910
+ volume_amount?: number;
1911
+ volume_usd_value?: number;
1912
+ addresses?: number;
1913
+ };
1914
+ };
1915
+ };
1916
+ export declare type MarketSummary = {
1917
+ '5m'?: MarketSummaryItem | null;
1918
+ '1h'?: MarketSummaryItem | null;
1919
+ '6h'?: MarketSummaryItem | null;
1920
+ '24h'?: MarketSummaryItem | null;
1921
+ };
1922
+ export declare type MarketTradingHistoryItem = {
1923
+ id: string;
1924
+ time_at?: number;
1925
+ action?: 'buy' | 'sell';
1926
+ price?: number;
1927
+ amount?: number;
1928
+ usd_value?: number;
1929
+ tx_id?: string;
1930
+ user_addr?: string;
1931
+ };
1932
+ export declare type TokenHolderSummary = {
1933
+ ratio_top10?: number;
1934
+ ratio_top100?: number;
1935
+ };
1936
+ export declare type TokenHolderItem = {
1937
+ user_addr?: string;
1938
+ amount?: number;
1939
+ ratio?: number;
1940
+ };
1941
+ export declare type LiquidityPoolItem = {
1942
+ id: string;
1943
+ tokens: {
1944
+ id: string;
1945
+ amount: number;
1946
+ symbol: string;
1947
+ price: number;
1948
+ usd_value: number;
1949
+ }[];
1950
+ project: {
1951
+ id: string;
1952
+ name: string;
1953
+ logo_url: string;
1954
+ };
1955
+ pool_id: string;
1956
+ usd_value: number;
1957
+ };
1958
+ export declare type LiquidityPoolHistoryItem = {
1959
+ id: string;
1960
+ tx_id: string;
1961
+ time_at: number;
1962
+ usd_value: number;
1963
+ action: 'add' | 'remove';
1964
+ tokens: {
1965
+ id: string;
1966
+ amount: number;
1967
+ symbol: string;
1968
+ price: number;
1969
+ usd_value: number;
1970
+ }[];
1971
+ };
1972
+ export declare type NFTTradingConfig = Record<string, {
1973
+ currency: string[];
1974
+ seaport_v16_address: string;
1975
+ opensea_chain_id: string;
1976
+ opensea_fee_recipient: string;
1977
+ opensea_conduit_address: string;
1978
+ listing_currency: {
1979
+ symbol: string;
1980
+ token_id: string;
1981
+ };
1982
+ offer_currency: {
1983
+ symbol: string;
1984
+ token_id: string;
1985
+ };
1986
+ }>;
1987
+ export interface NFTDetail extends NFTItem {
1988
+ best_offer_order: {
1989
+ order_hash: string;
1990
+ chain: string;
1991
+ protocol_data: {
1992
+ parameters: {
1993
+ offerer: string;
1994
+ offer: Array<{
1995
+ itemType: number;
1996
+ token: string;
1997
+ identifierOrCriteria: string;
1998
+ startAmount: string;
1999
+ endAmount: string;
2000
+ }>;
2001
+ consideration: Array<{
2002
+ itemType: number;
2003
+ token: string;
2004
+ identifierOrCriteria: string;
2005
+ startAmount: string;
2006
+ endAmount: string;
2007
+ recipient: string;
2008
+ }>;
2009
+ startTime: string;
2010
+ endTime: string;
2011
+ orderType: number;
2012
+ zone: string;
2013
+ zoneHash: string;
2014
+ salt: string;
2015
+ conduitKey: string;
2016
+ totalOriginalConsiderationItems: number;
2017
+ counter: number;
2018
+ };
2019
+ signature: null;
2020
+ };
2021
+ protocol_address: string;
2022
+ remaining_quantity: number;
2023
+ criteria: {
2024
+ collection: {
2025
+ slug: string;
2026
+ };
2027
+ contract: {
2028
+ address: string;
2029
+ };
2030
+ trait: null;
2031
+ traits: null;
2032
+ encoded_token_ids: string;
2033
+ };
2034
+ price: {
2035
+ currency: string;
2036
+ decimals: number;
2037
+ value: string;
2038
+ };
2039
+ status: 'ACTIVE' | string;
2040
+ } | null;
2041
+ rarity: {
2042
+ strategy_id: 'openrarity' | string;
2043
+ strategy_version: string;
2044
+ rank: number;
2045
+ } | null;
2046
+ last_sale?: {
2047
+ event_type: 'sale' | string;
2048
+ event_timestamp: number;
2049
+ transaction: string;
2050
+ payment: {
2051
+ quantity: string;
2052
+ decimals: number;
2053
+ symbol: string;
2054
+ token_id: string;
2055
+ price: number;
2056
+ };
2057
+ seller: string;
2058
+ buyer: string;
2059
+ quantity: number;
2060
+ } | null;
2061
+ }
2062
+ export interface NFTListingOrder {
2063
+ created_date: string;
2064
+ closing_date: string;
2065
+ listing_time: number;
2066
+ expiration_time: number;
2067
+ order_hash: string;
2068
+ protocol_data: {
2069
+ parameters: {
2070
+ offerer: string;
2071
+ offer: Array<{
2072
+ itemType: number;
2073
+ token: string;
2074
+ identifierOrCriteria: string;
2075
+ startAmount: string;
2076
+ endAmount: string;
2077
+ }>;
2078
+ consideration: Array<{
2079
+ itemType: number;
2080
+ token: string;
2081
+ identifierOrCriteria: string;
2082
+ startAmount: string;
2083
+ endAmount: string;
2084
+ recipient: string;
2085
+ }>;
2086
+ startTime: string;
2087
+ endTime: string;
2088
+ orderType: number;
2089
+ zone: string;
2090
+ zoneHash: string;
2091
+ salt: string;
2092
+ conduitKey: string;
2093
+ totalOriginalConsiderationItems: number;
2094
+ counter: number;
2095
+ };
2096
+ signature: null;
2097
+ };
2098
+ protocol_address: string;
2099
+ current_price: string;
2100
+ maker: {
2101
+ address: string;
2102
+ profile_img_url: null;
2103
+ config: null;
2104
+ };
2105
+ taker: null;
2106
+ maker_fees: any[];
2107
+ taker_fees: any[];
2108
+ side: 'ask' | 'bid';
2109
+ order_type: 'basic' | string;
2110
+ cancelled: boolean;
2111
+ finalized: boolean;
2112
+ marked_invalid: boolean;
2113
+ remaining_quantity: number;
2114
+ maker_asset_bundle: {
2115
+ assets: Array<{
2116
+ id: null;
2117
+ token_id: string;
2118
+ num_sales: null;
2119
+ background_color: null;
2120
+ image_url: string | null;
2121
+ image_preview_url: null;
2122
+ image_thumbnail_url: null;
2123
+ image_original_url: null;
2124
+ animation_url: null;
2125
+ animation_original_url: null;
2126
+ name: string;
2127
+ description: string | null;
2128
+ external_link: null;
2129
+ asset_contract: {
2130
+ address: string;
2131
+ chain_identifier: string;
2132
+ schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
2133
+ asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
2134
+ };
2135
+ permalink: string | null;
2136
+ collection: {
2137
+ collection: string;
2138
+ name: string;
2139
+ description: string;
2140
+ image_url: string;
2141
+ banner_image_url: string;
2142
+ owner: string;
2143
+ safelist_status: 'not_requested' | 'verified' | string;
2144
+ category: string;
2145
+ is_disabled: boolean;
2146
+ is_nsfw: boolean;
2147
+ trait_offers_enabled: boolean;
2148
+ collection_offers_enabled: boolean;
2149
+ opensea_url: string;
2150
+ project_url: string;
2151
+ wiki_url: string;
2152
+ discord_url: string;
2153
+ telegram_url: string;
2154
+ twitter_username: string;
2155
+ instagram_username: string;
2156
+ contracts: Array<{
2157
+ address: string;
2158
+ chain: string;
2159
+ }>;
2160
+ } | null;
2161
+ decimals: number | null;
2162
+ token_metadata: null;
2163
+ is_nsfw: boolean | null;
2164
+ owner: {
2165
+ address: string;
2166
+ profile_img_url: null;
2167
+ config: null;
2168
+ } | null;
2169
+ }>;
2170
+ maker: null;
2171
+ asset_contract: null;
2172
+ slug: null;
2173
+ name: null;
2174
+ description: null;
2175
+ external_link: null;
2176
+ permalink: null;
2177
+ seaport_sell_orders: null;
2178
+ };
2179
+ taker_asset_bundle: {
2180
+ assets: Array<{
2181
+ id: null;
2182
+ token_id: string;
2183
+ num_sales: null;
2184
+ background_color: null;
2185
+ image_url: string | null;
2186
+ image_preview_url: null;
2187
+ image_thumbnail_url: null;
2188
+ image_original_url: null;
2189
+ animation_url: null;
2190
+ animation_original_url: null;
2191
+ name: string;
2192
+ description: string | null;
2193
+ external_link: null;
2194
+ asset_contract: {
2195
+ address: string;
2196
+ chain_identifier: string;
2197
+ schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
2198
+ asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
2199
+ };
2200
+ permalink: string | null;
2201
+ collection: {
2202
+ collection: string;
2203
+ name: string;
2204
+ description: string;
2205
+ image_url: string;
2206
+ banner_image_url: string;
2207
+ owner: string;
2208
+ safelist_status: 'not_requested' | 'verified' | string;
2209
+ category: string;
2210
+ is_disabled: boolean;
2211
+ is_nsfw: boolean;
2212
+ trait_offers_enabled: boolean;
2213
+ collection_offers_enabled: boolean;
2214
+ opensea_url: string;
2215
+ project_url: string;
2216
+ wiki_url: string;
2217
+ discord_url: string;
2218
+ telegram_url: string;
2219
+ twitter_username: string;
2220
+ instagram_username: string;
2221
+ contracts: Array<{
2222
+ address: string;
2223
+ chain: string;
2224
+ }>;
2225
+ } | null;
2226
+ decimals: number | null;
2227
+ token_metadata: null;
2228
+ is_nsfw: boolean | null;
2229
+ owner: {
2230
+ address: string;
2231
+ profile_img_url: null;
2232
+ config: null;
2233
+ } | null;
2234
+ }>;
2235
+ maker: null;
2236
+ asset_contract: null;
2237
+ slug: null;
2238
+ name: null;
2239
+ description: null;
2240
+ external_link: null;
2241
+ permalink: null;
2242
+ seaport_sell_orders: null;
2243
+ };
2244
+ }
2245
+ export interface NFTListingResponse {
2246
+ orders: NFTListingOrder[];
2247
+ next: string | null;
2248
+ }
2249
+ export interface PrepareListingNFTResponse {
2250
+ data: {
2251
+ sign: {
2252
+ signatureKind: string;
2253
+ domain: {
2254
+ name: string;
2255
+ version: string;
2256
+ chainId: number;
2257
+ verifyingContract: string;
2258
+ };
2259
+ types: {
2260
+ EIP712Domain: Array<{
2261
+ name: string;
2262
+ type: string;
2263
+ }>;
2264
+ OrderComponents: Array<{
2265
+ name: string;
2266
+ type: string;
2267
+ }>;
2268
+ OfferItem: Array<{
2269
+ name: string;
2270
+ type: string;
2271
+ }>;
2272
+ ConsiderationItem: Array<{
2273
+ name: string;
2274
+ type: string;
2275
+ }>;
2276
+ };
2277
+ value: {
2278
+ offerer: string;
2279
+ zone: string;
2280
+ offer: Array<{
2281
+ itemType: number;
2282
+ token: string;
2283
+ identifierOrCriteria: string;
2284
+ startAmount: string;
2285
+ endAmount: string;
2286
+ }>;
2287
+ consideration: Array<{
2288
+ itemType: number;
2289
+ token: string;
2290
+ identifierOrCriteria: string;
2291
+ startAmount: string;
2292
+ endAmount: string;
2293
+ recipient: string;
2294
+ }>;
2295
+ orderType: number;
2296
+ startTime: string;
2297
+ endTime: string;
2298
+ zoneHash: string;
2299
+ salt: string;
2300
+ conduitKey: string;
2301
+ counter: string;
2302
+ };
2303
+ primaryType: string;
2304
+ };
2305
+ post: {
2306
+ endpoint: string;
2307
+ method: string;
2308
+ body: {
2309
+ order: {
2310
+ kind: string;
2311
+ data: {
2312
+ offerer: string;
2313
+ zone: string;
2314
+ offer: Array<{
2315
+ itemType: number;
2316
+ token: string;
2317
+ identifierOrCriteria: string;
2318
+ startAmount: string;
2319
+ endAmount: string;
2320
+ }>;
2321
+ consideration: Array<{
2322
+ itemType: number;
2323
+ token: string;
2324
+ identifierOrCriteria: string;
2325
+ startAmount: string;
2326
+ endAmount: string;
2327
+ recipient: string;
2328
+ }>;
2329
+ orderType: number;
2330
+ startTime: string;
2331
+ endTime: string;
2332
+ zoneHash: string;
2333
+ salt: string;
2334
+ conduitKey: string;
2335
+ counter: string;
2336
+ };
2337
+ };
2338
+ };
2339
+ };
2340
+ };
2341
+ }
2342
+ export interface PrepareAcceptNFTOfferResponse {
2343
+ data: {
2344
+ protocol: string;
2345
+ fulfillment_data: {
2346
+ transaction: {
2347
+ function: string;
2348
+ chain: number;
2349
+ to: string;
2350
+ value: number;
2351
+ input_data: {
2352
+ advancedOrder: {
2353
+ parameters: {
2354
+ offerer: string;
2355
+ zone: string;
2356
+ zoneHash: string;
2357
+ startTime: string;
2358
+ endTime: string;
2359
+ orderType: number;
2360
+ salt: string;
2361
+ conduitKey: string;
2362
+ totalOriginalConsiderationItems: number;
2363
+ offer: Array<{
2364
+ itemType: number;
2365
+ token: string;
2366
+ identifierOrCriteria: string;
2367
+ startAmount: string;
2368
+ endAmount: string;
2369
+ }>;
2370
+ consideration: Array<{
2371
+ itemType: number;
2372
+ token: string;
2373
+ identifierOrCriteria: string;
2374
+ startAmount: string;
2375
+ endAmount: string;
2376
+ recipient: string;
2377
+ }>;
2378
+ counter: number;
2379
+ };
2380
+ numerator: string;
2381
+ denominator: string;
2382
+ signature: string;
2383
+ extraData: string;
2384
+ };
2385
+ criteriaResolvers?: Array<{
2386
+ orderIndex: number;
2387
+ side: number;
2388
+ index: number;
2389
+ identifier: string;
2390
+ criteriaProof: string[];
2391
+ }>;
2392
+ fulfillerConduitKey?: string;
2393
+ recipient: string;
2394
+ } | {
2395
+ basicOrderParameters: {
2396
+ considerationToken: string;
2397
+ considerationIdentifier: string;
2398
+ considerationAmount: string;
2399
+ offerer: string;
2400
+ zone: string;
2401
+ offerToken: string;
2402
+ offerIdentifier: string;
2403
+ offerAmount: string;
2404
+ basicOrderType: number;
2405
+ startTime: string;
2406
+ endTime: string;
2407
+ zoneHash: string;
2408
+ salt: string;
2409
+ offererConduitKey: string;
2410
+ fulfillerConduitKey: string;
2411
+ totalOriginalAdditionalRecipients: number;
2412
+ additionalRecipients: Array<{
2413
+ amount: string;
2414
+ recipient: string;
2415
+ }>;
2416
+ signature: string;
2417
+ };
2418
+ } | {
2419
+ order: {
2420
+ parameters: {
2421
+ offerer: string;
2422
+ zone: string;
2423
+ zoneHash: string;
2424
+ startTime: string;
2425
+ endTime: string;
2426
+ orderType: number;
2427
+ salt: string;
2428
+ conduitKey: string;
2429
+ totalOriginalConsiderationItems: number;
2430
+ offer: Array<{
2431
+ itemType: number;
2432
+ token: string;
2433
+ identifierOrCriteria: string;
2434
+ startAmount: string;
2435
+ endAmount: string;
2436
+ }>;
2437
+ consideration: Array<{
2438
+ itemType: number;
2439
+ token: string;
2440
+ identifierOrCriteria: string;
2441
+ startAmount: string;
2442
+ endAmount: string;
2443
+ recipient: string;
2444
+ }>;
2445
+ counter: number;
2446
+ };
2447
+ signature: string;
2448
+ };
2449
+ fulfillerConduitKey?: string;
2450
+ recipient: string;
2451
+ } | {
2452
+ orders: Array<{
2453
+ parameters: {
2454
+ offerer: string;
2455
+ zone: string;
2456
+ zoneHash: string;
2457
+ startTime: string;
2458
+ endTime: string;
2459
+ orderType: number;
2460
+ salt: string;
2461
+ conduitKey: string;
2462
+ totalOriginalConsiderationItems: number;
2463
+ offer: Array<{
2464
+ itemType: number;
2465
+ token: string;
2466
+ identifierOrCriteria: string;
2467
+ startAmount: string;
2468
+ endAmount: string;
2469
+ }>;
2470
+ consideration: Array<{
2471
+ itemType: number;
2472
+ token: string;
2473
+ identifierOrCriteria: string;
2474
+ startAmount: string;
2475
+ endAmount: string;
2476
+ recipient: string;
2477
+ }>;
2478
+ counter: number;
2479
+ };
2480
+ signature: string;
2481
+ } | {
2482
+ parameters: {
2483
+ offerer: string;
2484
+ zone: string;
2485
+ zoneHash: string;
2486
+ startTime: string;
2487
+ endTime: string;
2488
+ orderType: number;
2489
+ salt: string;
2490
+ conduitKey: string;
2491
+ totalOriginalConsiderationItems: number;
2492
+ offer: Array<{
2493
+ itemType: number;
2494
+ token: string;
2495
+ identifierOrCriteria: string;
2496
+ startAmount: string;
2497
+ endAmount: string;
2498
+ }>;
2499
+ consideration: Array<{
2500
+ itemType: number;
2501
+ token: string;
2502
+ identifierOrCriteria: string;
2503
+ startAmount: string;
2504
+ endAmount: string;
2505
+ recipient: string;
2506
+ }>;
2507
+ counter: number;
2508
+ };
2509
+ numerator: string;
2510
+ denominator: string;
2511
+ signature: string;
2512
+ extraData: string;
2513
+ } | {
2514
+ considerationToken: string;
2515
+ considerationIdentifier: string;
2516
+ considerationAmount: string;
2517
+ offerer: string;
2518
+ zone: string;
2519
+ offerToken: string;
2520
+ offerIdentifier: string;
2521
+ offerAmount: string;
2522
+ basicOrderType: number;
2523
+ startTime: string;
2524
+ endTime: string;
2525
+ zoneHash: string;
2526
+ salt: string;
2527
+ offererConduitKey: string;
2528
+ fulfillerConduitKey: string;
2529
+ totalOriginalAdditionalRecipients: number;
2530
+ additionalRecipients: Array<{
2531
+ amount: string;
2532
+ recipient: string;
2533
+ }>;
2534
+ signature: string;
2535
+ }>;
2536
+ };
2537
+ };
2538
+ orders: Array<{
2539
+ parameters: {
2540
+ offerer: string;
2541
+ zone: string;
2542
+ zoneHash: string;
2543
+ startTime: string;
2544
+ endTime: string;
2545
+ orderType: number;
2546
+ salt: string;
2547
+ conduitKey: string;
2548
+ totalOriginalConsiderationItems: number;
2549
+ offer: Array<{
2550
+ itemType: number;
2551
+ token: string;
2552
+ identifierOrCriteria: string;
2553
+ startAmount: string;
2554
+ endAmount: string;
2555
+ }>;
2556
+ consideration: Array<{
2557
+ itemType: number;
2558
+ token: string;
2559
+ identifierOrCriteria: string;
2560
+ startAmount: string;
2561
+ endAmount: string;
2562
+ recipient: string;
2563
+ }>;
2564
+ counter: number;
2565
+ };
2566
+ signature: string;
2567
+ }>;
2568
+ };
2569
+ };
2570
+ }
2571
+ export interface CreateListingNFTOfferResponse {
2572
+ order: {
2573
+ created_date: string;
2574
+ closing_date: string;
2575
+ listing_time: number;
2576
+ expiration_time: number;
2577
+ order_hash: string;
2578
+ protocol_data: {
2579
+ parameters: {
2580
+ offerer: string;
2581
+ offer: Array<{
2582
+ itemType: number;
2583
+ token: string;
2584
+ identifierOrCriteria: string;
2585
+ startAmount: string;
2586
+ endAmount: string;
2587
+ }>;
2588
+ consideration: Array<{
2589
+ itemType: number;
2590
+ token: string;
2591
+ identifierOrCriteria: string;
2592
+ startAmount: string;
2593
+ endAmount: string;
2594
+ recipient: string;
2595
+ }>;
2596
+ startTime: string;
2597
+ endTime: string;
2598
+ orderType: number;
2599
+ zone: string;
2600
+ zoneHash: string;
2601
+ salt: string;
2602
+ conduitKey: string;
2603
+ totalOriginalConsiderationItems: number;
2604
+ counter: number;
2605
+ };
2606
+ signature: null;
2607
+ };
2608
+ protocol_address: string;
2609
+ current_price: string;
2610
+ maker: {
2611
+ address: string;
2612
+ profile_img_url: null;
2613
+ config: null;
2614
+ };
2615
+ taker: null;
2616
+ maker_fees: any[];
2617
+ taker_fees: any[];
2618
+ side: 'ask' | 'bid';
2619
+ order_type: 'basic' | string;
2620
+ cancelled: boolean;
2621
+ finalized: boolean;
2622
+ marked_invalid: boolean;
2623
+ remaining_quantity: number;
2624
+ maker_asset_bundle: {
2625
+ assets: Array<{
2626
+ id: null;
2627
+ token_id: string;
2628
+ num_sales: null;
2629
+ background_color: null;
2630
+ image_url: string | null;
2631
+ image_preview_url: null;
2632
+ image_thumbnail_url: null;
2633
+ image_original_url: null;
2634
+ animation_url: null;
2635
+ animation_original_url: null;
2636
+ name: string;
2637
+ description: string | null;
2638
+ external_link: null;
2639
+ asset_contract: {
2640
+ address: string;
2641
+ chain_identifier: string;
2642
+ schema_name: 'ERC721' | 'ERC1155' | 'NATIVE' | string;
2643
+ asset_contract_type: 'non-fungible' | 'semi-fungible' | 'unknown';
2644
+ };
2645
+ permalink: string | null;
2646
+ collection: {
2647
+ collection: string;
2648
+ name: string;
2649
+ description: string;
2650
+ image_url: string;
2651
+ banner_image_url: string;
2652
+ owner: string;
2653
+ safelist_status: 'not_requested' | 'verified' | string;
2654
+ category: string;
2655
+ is_disabled: boolean;
2656
+ is_nsfw: boolean;
2657
+ trait_offers_enabled: boolean;
2658
+ collection_offers_enabled: boolean;
2659
+ opensea_url: string;
2660
+ project_url: string;
2661
+ wiki_url: string;
2662
+ discord_url: string;
2663
+ telegram_url: string;
2664
+ twitter_username: string;
2665
+ instagram_username: string;
2666
+ contracts: Array<{
2667
+ address: string;
2668
+ chain: string;
2669
+ }>;
2670
+ } | null;
2671
+ decimals: number | null;
2672
+ token_metadata: null;
2673
+ is_nsfw: boolean | null;
2674
+ owner: {
2675
+ address: string;
2676
+ profile_img_url: null;
2677
+ config: null;
2678
+ } | null;
2679
+ }>;
2680
+ maker: null;
2681
+ asset_contract: null;
2682
+ slug: null;
2683
+ name: null;
2684
+ description: null;
2685
+ external_link: null;
2686
+ permalink: null;
2687
+ seaport_sell_orders: null;
2688
+ };
2689
+ taker_asset_bundle: {
2690
+ assets: Array<{
2691
+ id: null;
2692
+ token_id: string;
2693
+ num_sales: null;
2694
+ background_color: null;
2695
+ image_url: null;
2696
+ image_preview_url: null;
2697
+ image_thumbnail_url: null;
2698
+ image_original_url: null;
2699
+ animation_url: null;
2700
+ animation_original_url: null;
2701
+ name: string;
2702
+ description: null;
2703
+ external_link: null;
2704
+ asset_contract: {
2705
+ address: string;
2706
+ chain_identifier: string;
2707
+ schema_name: 'NATIVE' | string;
2708
+ asset_contract_type: 'unknown';
2709
+ };
2710
+ permalink: null;
2711
+ collection: null;
2712
+ decimals: number;
2713
+ token_metadata: null;
2714
+ is_nsfw: null;
2715
+ owner: null;
2716
+ }>;
2717
+ maker: null;
2718
+ asset_contract: null;
2719
+ slug: null;
2720
+ name: null;
2721
+ description: null;
2722
+ external_link: null;
2723
+ permalink: null;
2724
+ seaport_sell_orders: null;
2725
+ };
2726
+ };
2727
+ }
2728
+ export interface MemeItem {
2729
+ id: string;
2730
+ chain: string;
2731
+ symbol: string;
2732
+ name: string;
2733
+ logo_url: string;
2734
+ is_verified: boolean;
2735
+ is_core: boolean;
2736
+ credit_score: number;
2737
+ price: number;
2738
+ price_24h_change: number;
2739
+ volume_24h: number;
2740
+ fdv: number;
2741
+ }
2742
+ export interface MemeListResponse {
2743
+ data_list: MemeItem[];
2744
+ pagination: {
2745
+ limit: number;
2746
+ has_next: boolean;
2747
+ next_cursor: string;
2748
+ };
2749
+ }
2750
+ export interface TokenMarketCategoryItem {
2751
+ id: string;
2752
+ name: string;
2753
+ sort_fields: string[];
2754
+ default_sort_by: string;
2755
+ display_order: number;
2756
+ }
2757
+ export interface TokenMarketCategoryListResponse {
2758
+ categories: TokenMarketCategoryItem[];
2759
+ }
2760
+ export interface TokenMarketTokenRelatedItem {
2761
+ id: string;
2762
+ name: string;
2763
+ logo: string;
2764
+ }
2765
+ export interface TokenMarketTokenItem {
2766
+ id: string;
2767
+ chain: string;
2768
+ name: string;
2769
+ symbol: string;
2770
+ display_symbol: string;
2771
+ logo_url: string;
2772
+ is_verified: boolean;
2773
+ is_core: boolean;
2774
+ credit_score: number;
2775
+ price: number;
2776
+ price_24h_change: number;
2777
+ volume_24h: number;
2778
+ fdv: number;
2779
+ identity?: TokenEntityDetail;
2780
+ launchpad: TokenMarketTokenRelatedItem | null;
2781
+ asset: TokenMarketTokenRelatedItem | null;
2782
+ }
2783
+ export interface TokenMarketTokenListResponse {
2784
+ data_list: TokenMarketTokenItem[];
2785
+ pagination: {
2786
+ limit: number;
2787
+ has_next: boolean;
2788
+ next_cursor: string;
2789
+ };
2790
+ }
2791
+ export declare type StakingPoolType = 'erc4626' | 'univ2' | 'univ3';
2792
+ export declare type StakingPoolCurveMetric = 'tvl' | 'apr';
2793
+ export interface StakingLink {
2794
+ type: 'website' | 'twitter' | string;
2795
+ name: string;
2796
+ url: string;
2797
+ }
2798
+ export interface StakingProtocol {
2799
+ id: string;
2800
+ name?: string;
2801
+ logo_url?: string;
2802
+ is_holding?: boolean;
2803
+ site_url?: string;
2804
+ twitter_url?: string;
2805
+ about?: {
2806
+ description?: string;
2807
+ links?: StakingLink[];
2808
+ };
2809
+ }
2810
+ export interface StakingToken {
2811
+ id: string;
2812
+ chain_id?: string;
2813
+ chain?: string;
2814
+ symbol: string;
2815
+ logo_url?: string;
2816
+ price?: number;
2817
+ decimals?: number;
2818
+ }
2819
+ export interface StakingTokens {
2820
+ supplys?: StakingToken[];
2821
+ supplies?: StakingToken[];
2822
+ rewards?: StakingToken[];
2823
+ }
2824
+ export interface StakingTag {
2825
+ id?: string;
2826
+ name: string;
2827
+ }
2828
+ export interface StakingActionState {
2829
+ is_supported: boolean;
2830
+ reason?: string;
2831
+ }
2832
+ export interface StakingActions {
2833
+ deposit?: StakingActionState;
2834
+ withdraw?: StakingActionState;
2835
+ claim?: StakingActionState;
2836
+ }
2837
+ export interface StakingPool {
2838
+ id: string;
2839
+ pool_address?: string;
2840
+ chain_id: string;
2841
+ type: StakingPoolType;
2842
+ deployment_id?: string;
2843
+ deploymentId?: string;
2844
+ fee?: number | string;
2845
+ create_at?: number;
2846
+ protocol: StakingProtocol;
2847
+ name?: string;
2848
+ display_name?: string;
2849
+ metric_label?: string;
2850
+ tokens?: StakingTokens;
2851
+ tags?: StakingTag[];
2852
+ tvl?: number | null;
2853
+ apr?: number | null;
2854
+ is_holding?: boolean;
2855
+ user_position_usd_value?: number | null;
2856
+ user_position_indexes?: string[];
2857
+ actions?: StakingActions;
2858
+ }
2859
+ export declare type StakingPoolApi = StakingPool;
2860
+ export interface StakingPoolListParams {
2861
+ q?: string;
2862
+ chain_id?: string;
2863
+ protocol_id?: string;
2864
+ user_addr?: string;
2865
+ holding_only?: boolean;
2866
+ start?: number;
2867
+ limit?: number;
2868
+ order_by?: 'tvl' | string;
2869
+ order?: 'asc' | 'desc' | string;
2870
+ }
2871
+ export interface StakingFilterListParams {
2872
+ user_addr?: string;
2873
+ }
2874
+ export interface StakingPoolParams {
2875
+ pool_id: string;
2876
+ user_addr?: string;
2877
+ }
2878
+ export interface StakingPoolCurveParams {
2879
+ pool_id: string;
2880
+ metric?: StakingPoolCurveMetric;
2881
+ }
2882
+ export interface StakingPoolListResponse {
2883
+ pools?: StakingPool[];
2884
+ list?: StakingPool[];
2885
+ page?: {
2886
+ start?: number;
2887
+ limit?: number;
2888
+ total?: number;
2889
+ };
2890
+ }
2891
+ export declare type StakingPoolListResponseApi = StakingPoolListResponse;
2892
+ export interface StakingFilterItem {
2893
+ id: string;
2894
+ name?: string;
2895
+ logo_url?: string;
2896
+ }
2897
+ export interface StakingFilterListResponse {
2898
+ protocols?: StakingProtocol[];
2899
+ chains?: StakingFilterItem[];
2900
+ }
2901
+ export declare type StakingFilterListResponseApi = StakingFilterListResponse;
2902
+ export interface StakingPoolResponse {
2903
+ pool?: StakingPool;
2904
+ }
2905
+ export declare type StakingPoolDetailResponseApi = StakingPoolResponse;
2906
+ export declare type StakingPoolCurvePoint = [number, number] | {
2907
+ timestamp?: number;
2908
+ time_at?: number;
2909
+ date_at?: number;
2910
+ value?: number;
2911
+ };
2912
+ export declare type StakingPoolCurvePointApi = StakingPoolCurvePoint;
2913
+ export declare type StakingPoolCurveResponse = StakingPoolCurvePoint[] | {
2914
+ list?: StakingPoolCurvePoint[];
2915
+ data?: StakingPoolCurvePoint[];
2916
+ };
2917
+ export declare type StakingPoolCurveResponseApi = StakingPoolCurveResponse;
1384
2918
  export {};