@@ -174,7 +174,7 @@ export class EthImpl implements Eth {
174
174
} )
175
175
@rpcParamLayoutConfig ( RPC_LAYOUT . custom ( ( params ) => [ Number ( params [ 0 ] ) , params [ 1 ] , params [ 2 ] ] ) )
176
176
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
177
- skipParams : [ { index : '2' , value : 'latest' } ] ,
177
+ skipParams : [ { index : '2' , value : 'latest|pending|finalized|safe ' } ] ,
178
178
ttl : constants . CACHE_TTL . FIFTEEN_MINUTES ,
179
179
} )
180
180
async feeHistory (
@@ -679,7 +679,7 @@ export class EthImpl implements Eth {
679
679
} )
680
680
@rpcParamLayoutConfig ( RPC_LAYOUT . custom ( ( params ) => [ params [ 0 ] , params [ 1 ] , params [ 2 ] ] ) )
681
681
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
682
- skipParams : [ { index : '2' , value : 'latest' } ] ,
682
+ skipParams : [ { index : '2' , value : 'latest|pending|finalized|safe ' } ] ,
683
683
} )
684
684
async getStorageAt (
685
685
address : string ,
@@ -708,7 +708,7 @@ export class EthImpl implements Eth {
708
708
1 : { type : ParamType . BLOCK_NUMBER_OR_HASH , required : true } ,
709
709
} )
710
710
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
711
- skipParams : [ { index : '1' , value : 'latest' } ] ,
711
+ skipParams : [ { index : '1' , value : 'latest|pending|finalized|safe ' } ] ,
712
712
} )
713
713
async getBalance (
714
714
account : string ,
@@ -736,7 +736,7 @@ export class EthImpl implements Eth {
736
736
1 : { type : ParamType . BLOCK_NUMBER_OR_HASH , required : true } ,
737
737
} )
738
738
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
739
- skipParams : [ { index : '1' , value : 'latest' } ] ,
739
+ skipParams : [ { index : '1' , value : 'latest|pending|finalized|safe ' } ] ,
740
740
} )
741
741
public async getCode (
742
742
address : string ,
@@ -801,7 +801,7 @@ export class EthImpl implements Eth {
801
801
0 : { type : ParamType . BLOCK_NUMBER , required : true } ,
802
802
} )
803
803
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
804
- skipParams : [ { index : '0' , value : 'latest' } ] ,
804
+ skipParams : [ { index : '0' , value : 'latest|pending|finalized|safe ' } ] ,
805
805
} )
806
806
async getBlockTransactionCountByNumber (
807
807
blockNumOrTag : string ,
@@ -852,7 +852,7 @@ export class EthImpl implements Eth {
852
852
1 : { type : ParamType . HEX , required : true } ,
853
853
} )
854
854
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
855
- skipParams : [ { index : '0' , value : 'latest' } ] ,
855
+ skipParams : [ { index : '0' , value : 'latest|pending|finalized|safe ' } ] ,
856
856
} )
857
857
async getTransactionByBlockNumberAndIndex (
858
858
blockNumOrTag : string ,
@@ -883,7 +883,7 @@ export class EthImpl implements Eth {
883
883
1 : { type : ParamType . BOOLEAN , required : true } ,
884
884
} )
885
885
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
886
- skipParams : [ { index : '0' , value : 'latest' } ] ,
886
+ skipParams : [ { index : '0' , value : 'latest|pending|finalized|safe ' } ] ,
887
887
} )
888
888
async getBlockByNumber (
889
889
blockNumOrTag : string ,
@@ -1058,8 +1058,8 @@ export class EthImpl implements Eth {
1058
1058
{
1059
1059
index : '0' ,
1060
1060
fields : [
1061
- { name : 'fromBlock' , value : 'latest' } ,
1062
- { name : 'toBlock' , value : 'latest' } ,
1061
+ { name : 'fromBlock' , value : 'latest|pending|finalized|safe ' } ,
1062
+ { name : 'toBlock' , value : 'latest|pending|finalized|safe ' } ,
1063
1063
] ,
1064
1064
} ,
1065
1065
] ,
@@ -1102,7 +1102,7 @@ export class EthImpl implements Eth {
1102
1102
0 : { type : ParamType . BLOCK_NUMBER_OR_HASH , required : true } ,
1103
1103
} )
1104
1104
@cache ( CacheService . getInstance ( CACHE_LEVEL . L1 ) , {
1105
- skipParams : [ { index : '0' , value : 'latest' } ] ,
1105
+ skipParams : [ { index : '0' , value : 'latest|pending|finalized|safe ' } ] ,
1106
1106
} )
1107
1107
public async getBlockReceipts ( blockHashOrBlockNumber : string , requestDetails : RequestDetails ) : Promise < Receipt [ ] > {
1108
1108
return await this . blockService . getBlockReceipts ( blockHashOrBlockNumber , requestDetails ) ;
0 commit comments