File tree Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Expand file tree Collapse file tree 6 files changed +20
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @moralisweb3/common-evm-utils ' : patch
3
+ ' @moralisweb3/evm-api ' : patch
4
+ ' moralis ' : patch
5
+ ---
6
+
7
+ Updated the types of ` fromDate ` request fields. This change affects the ` getNFTTrades ` and ` getWalletHistory ` endpoints.
Original file line number Diff line number Diff line change 86
86
{
87
87
"names" : " to_date" ,
88
88
"nativeType" : " Date"
89
+ },
90
+ {
91
+ "names" : " from_date" ,
92
+ "nativeType" : " Date"
89
93
}
90
94
]
91
95
},
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export abstract class AbstractClient {
196
196
* * Provide the param 'from_block' or 'from_date'
197
197
* * If 'from_date' and 'from_block' are provided, 'from_block' will be used. (optional)
198
198
* @param {Number } [request.toBlock] The block number to get the trades from (optional)
199
- * @param {String } [request.fromDate] The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)
199
+ * @param {Date } [request.fromDate] The start date from which to get the transfers (format in seconds or datestring accepted by momentjs)
200
200
* * Provide the param 'from_block' or 'from_date'
201
201
* * If 'from_date' and 'from_block' are provided, 'from_block' will be used. (optional)
202
202
* @param {Date } [request.toDate] The end date from which to get the transfers (format in seconds or datestring accepted by momentjs)
@@ -402,7 +402,7 @@ export abstract class AbstractClient {
402
402
* @param {Number } [request.toBlock] The maximum block number from which to get the transactions.
403
403
* * Provide the param 'to_block' or 'to_date'
404
404
* * If 'to_date' and 'to_block' are provided, 'to_block' will be used. (optional)
405
- * @param {String } [request.fromDate] The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
405
+ * @param {Date } [request.fromDate] The start date from which to get the transactions (format in seconds or datestring accepted by momentjs)
406
406
* * Provide the param 'from_block' or 'from_date'
407
407
* * If 'from_date' and 'from_block' are provided, 'from_block' will be used. (optional)
408
408
* @param {Date } [request.toDate] Get the transactions up to this date (format in seconds or datestring accepted by momentjs)
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export interface GetNFTTradesOperationRequest {
34
34
* * Provide the param 'from_block' or 'from_date'
35
35
* * If 'from_date' and 'from_block' are provided, 'from_block' will be used.
36
36
*/
37
- readonly fromDate ?: string ;
37
+ readonly fromDate ?: Date ;
38
38
/**
39
39
* @description The end date from which to get the transfers (format in seconds or datestring accepted by momentjs)
40
40
* * Provide the param 'to_block' or 'to_date'
@@ -107,7 +107,7 @@ export const GetNFTTradesOperation = {
107
107
chain : chain ? chain . toJSON ( ) : undefined ,
108
108
from_block : fromBlock ,
109
109
to_block : toBlock !== undefined ? String ( toBlock ) : undefined ,
110
- from_date : fromDate ,
110
+ from_date : fromDate !== undefined ? fromDate . toISOString ( ) : undefined ,
111
111
to_date : toDate !== undefined ? toDate . toISOString ( ) : undefined ,
112
112
marketplace : marketplace ? marketplace : undefined ,
113
113
cursor : cursor ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface GetWalletHistoryOperationRequest {
39
39
* * Provide the param 'from_block' or 'from_date'
40
40
* * If 'from_date' and 'from_block' are provided, 'from_block' will be used.
41
41
*/
42
- readonly fromDate ?: string ;
42
+ readonly fromDate ?: Date ;
43
43
/**
44
44
* @description Get the transactions up to this date (format in seconds or datestring accepted by momentjs)
45
45
* * Provide the param 'to_block' or 'to_date'
@@ -130,7 +130,7 @@ export const GetWalletHistoryOperation = {
130
130
chain : chain ? chain . toJSON ( ) : undefined ,
131
131
from_block : fromBlock ,
132
132
to_block : toBlock ,
133
- from_date : fromDate ,
133
+ from_date : fromDate !== undefined ? fromDate . toISOString ( ) : undefined ,
134
134
to_date : toDate !== undefined ? toDate . toISOString ( ) : undefined ,
135
135
address : address . toJSON ( ) ,
136
136
include_internal_transactions : includeInternalTransactions ,
Original file line number Diff line number Diff line change 1
1
// $ref: #/components/schemas/discoveryApiChainsList
2
2
// typeName: discoveryApiChainsList
3
3
4
- export type EvmDiscoveryApiChainsListJSON = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" ;
5
- export type EvmDiscoveryApiChainsListInput = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" ;
6
- export type EvmDiscoveryApiChainsListValue = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" ;
4
+ export type EvmDiscoveryApiChainsListJSON = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" | "linea" | "0xe708" ;
5
+ export type EvmDiscoveryApiChainsListInput = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" | "linea" | "0xe708" ;
6
+ export type EvmDiscoveryApiChainsListValue = "eth" | "mainnet" | "0x1" | "matic" | "0x89" | "polygon" | "bsc" | "binance" | "0x38" | "fantom" | "ftm" | "0xfa" | "arbitrum" | "0xa4b1" | "optimism" | "0xa" | "pulsechain" | "0x171" | "base" | "0x2105" | "linea" | "0xe708" ;
7
7
8
8
export abstract class EvmDiscoveryApiChainsList {
9
9
public static create ( input : EvmDiscoveryApiChainsListInput | EvmDiscoveryApiChainsListValue ) : EvmDiscoveryApiChainsListValue {
You can’t perform that action at this time.
0 commit comments