Skip to content

Commit

Permalink
add baseFee methods
Browse files Browse the repository at this point in the history
add txType to get base fee

remove old getPriorityFee

remove block data from getFeeData to be compatible with both quai and qi

npm i && build
  • Loading branch information
Denis2626 committed Mar 14, 2024
1 parent d33246b commit 8ef35ce
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 50 deletions.
3 changes: 2 additions & 1 deletion lib.commonjs/providers/abstract-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export type PerformActionRequest = {
blockTag: BlockTag;
} | {
method: "getGasPrice";
txType: boolean;
} | {
method: "getLogs";
filter: PerformActionFilter;
Expand Down Expand Up @@ -348,7 +349,7 @@ export declare class AbstractProvider implements Provider {
*/
_getTransactionRequest(_request: TransactionRequest): PerformActionTransaction | Promise<PerformActionTransaction>;
getNetwork(): Promise<Network>;
getFeeData(): Promise<FeeData>;
getFeeData(txType?: boolean): Promise<FeeData>;
estimateGas(_tx: TransactionRequest): Promise<bigint>;
call(_tx: TransactionRequest): Promise<string>;
getBalance(address: AddressLike, blockTag?: BlockTag): Promise<bigint>;
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/providers/abstract-provider.d.ts.map

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions lib.commonjs/providers/abstract-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/abstract-provider.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib.commonjs/providers/provider-jsonrpc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib.esm/providers/abstract-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export type PerformActionRequest = {
blockTag: BlockTag;
} | {
method: "getGasPrice";
txType: boolean;
} | {
method: "getLogs";
filter: PerformActionFilter;
Expand Down Expand Up @@ -354,7 +355,7 @@ export declare class AbstractProvider implements Provider {
getNetwork(): Promise<Network>;
getRunningLocations(): Promise<number[][]>;
getProtocolTrieExpansionCount(): Promise<number>;
getFeeData(): Promise<FeeData>;
getFeeData(txType?: boolean): Promise<FeeData>;
estimateGas(_tx: TransactionRequest): Promise<bigint>;
call(_tx: TransactionRequest): Promise<string>;
getBalance(address: AddressLike, blockTag?: BlockTag): Promise<bigint>;
Expand Down
Loading

0 comments on commit 8ef35ce

Please sign in to comment.